Fixing bugs and removing debug statements
[tpg/acess2.git] / Kernel / arch / x86 / proc.asm
index 41623bd..20a4fd7 100644 (file)
@@ -97,15 +97,14 @@ SchedulerBase:
        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
@@ -237,6 +236,13 @@ GetCPUNum:
 
 ; 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

UCC git Repository :: git.ucc.asn.au