core: remove bozo typedef for types
This commit is contained in:
@ -1,23 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "types.h"
|
||||
#include <stdint.h>
|
||||
|
||||
struct registers {
|
||||
// data segment selector
|
||||
u32 ds;
|
||||
uint32_t ds;
|
||||
// general purpose registers pushed by pusha
|
||||
u32 edi, esi, ebp, esp, ebx, edx, ecx, eax;
|
||||
uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax;
|
||||
// pushed by isr procedure
|
||||
u32 int_no, err_code;
|
||||
uint32_t int_no, err_code;
|
||||
// pushed by CPU automatically
|
||||
u32 eip, cs, eflags, useresp, ss;
|
||||
uint32_t eip, cs, eflags, useresp, ss;
|
||||
};
|
||||
|
||||
typedef void (*isr_t)(struct registers *);
|
||||
|
||||
void isr_handler(struct registers *regs);
|
||||
void pic_send_eoi(u8 irq);
|
||||
void pic_send_eoi(uint8_t irq);
|
||||
void register_interrupt_handler(int index, isr_t handler);
|
||||
|
||||
static inline void cli(void)
|
||||
|
Reference in New Issue
Block a user