Kernel: Replace i386 with i686
I don't really want to be working with i386 since it doesn't support compare exchange instruction
This commit is contained in:
19
kernel/arch/i686/Syscall.S
Normal file
19
kernel/arch/i686/Syscall.S
Normal file
@@ -0,0 +1,19 @@
|
||||
.global sys_fork_trampoline
|
||||
sys_fork_trampoline:
|
||||
ud2
|
||||
subl $4, %esp
|
||||
pushl %ebx
|
||||
pushl %ebp
|
||||
call read_ip
|
||||
testl %eax, %eax
|
||||
je .done
|
||||
subl $8, %esp
|
||||
pushl %eax
|
||||
pushl %esp
|
||||
call sys_fork
|
||||
addl $16, %esp
|
||||
.done:
|
||||
popl %ebp
|
||||
popl %ebx
|
||||
addl $4, %esp
|
||||
ret
|
||||
Reference in New Issue
Block a user