core: change types from uint32_t to u32 (e.g)

This commit is contained in:
2025-01-27 11:26:15 +01:00
parent 95fec015f2
commit d7626df19c
51 changed files with 422 additions and 374 deletions

View File

@ -1,22 +1,23 @@
#pragma once
#include "types.h"
#include <stdint.h>
struct registers {
// data segment selector
uint32_t ds;
u32 ds;
// general purpose registers pushed by pusha
uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax;
u32 edi, esi, ebp, esp, ebx, edx, ecx, eax;
// pushed by isr procedure
uint32_t int_no, err_code;
u32 int_no, err_code;
// pushed by CPU automatically
uint32_t eip, cs, eflags, useresp, ss;
u32 eip, cs, eflags, useresp, ss;
};
typedef void (*isr_t)(struct registers *);
void isr_handler(struct registers *regs);
void pic_send_eoi(uint8_t irq);
void pic_send_eoi(u8 irq);
void register_interrupt_handler(int index, isr_t handler);
static inline void cli(void)
@ -27,4 +28,4 @@ static inline void cli(void)
static inline void sti(void)
{
__asm__ volatile("sti");
}
}