Fixing behavior of Threads_CloneTCB
[tpg/acess2.git] / Kernel / arch / x86 / proc.asm
index d905c24..1cf1f96 100644 (file)
@@ -114,6 +114,13 @@ Proc_ReturnToUser:
        
        iret
 
+[global GetCPUNum]
+GetCPUNum:
+       xor eax, eax
+       ltr ax
+       sub ax, 0x30
+       shr ax, 3       ; ax /= 8
+       ret
 
 [section .usertext]
 User_Syscall_RetAndExit:

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