jnz .sendEOI
%endif
- mov dx, 0x20
mov al, 0x20
- out dx, al ; ACK IRQ
+ out 0x20, al ; ACK IRQ
%if USE_MP
jmp .ret
.sendEOI:
mov eax, DWORD [gpMP_LocalAPIC]
- mov DWORD [eax+0x0B0], 1
+ mov DWORD [eax+0x0B0], 0
%endif
.ret:
pop gs
; Usermode code exported by the kernel
[section .usertext]
+; Export a place for the user to jump to to call a syscall
+; - Allows the kernel to change the method easily
+User_Syscall:
+ xchg bx, bx
+ int 0xAC
+
+; A place to return to and exit
User_Syscall_RetAndExit:
push eax
call User_Syscall_Exit