core: remove bozo typedef for types

This commit is contained in:
2025-02-07 12:35:32 +01:00
parent 70739744ac
commit 3b798e5daa
55 changed files with 59841 additions and 1789 deletions

View File

@ -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)