Kernel: Move sys_fork trampolines to kernel/arch/ directory

This commit is contained in:
2024-03-22 12:48:54 +02:00
parent 26ed689d30
commit 45cea14165
3 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
.global sys_fork_trampoline
sys_fork_trampoline:
subl $4, %esp
pushl %ebx
pushl %ebp
call read_rip
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