git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixing behavior of Threads_CloneTCB
[tpg/acess2.git]
/
Kernel
/
arch
/
x86
/
proc.asm
diff --git
a/Kernel/arch/x86/proc.asm
b/Kernel/arch/x86/proc.asm
index
d905c24
..
1cf1f96
100644
(file)
--- a/
Kernel/arch/x86/proc.asm
+++ b/
Kernel/arch/x86/proc.asm
@@
-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