fixed build error
This commit is contained in:
parent
6400fafa81
commit
c7d5b6f163
|
|
@ -21,7 +21,7 @@ cpu_registers_t *(*interrupt_handlers[16])(cpu_registers_t *regs) = {0};
|
|||
|
||||
void _irq_handler(cpu_registers_t *regs){
|
||||
if(regs->int_no == 0x80){
|
||||
syscall(regs);
|
||||
regs = syscall(regs);
|
||||
}
|
||||
else if(interrupt_handlers[regs->int_no - 32])
|
||||
{
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ typedef struct idt{
|
|||
#define IDT_DPL_KERNEL 0 << 5
|
||||
#define IDT_DPL_USER 3 << 5
|
||||
|
||||
cpu_registers_t *syscall(cpu_registers_t * regs);
|
||||
|
||||
inline void enable_interrupts(){
|
||||
asm volatile("sti");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue