Update system_call.s

master
mp6sgfx3h 2 years ago
parent 083778d87c
commit 2a599e4194

@ -227,9 +227,8 @@ sys_fork:
pushl %edi
pushl %ebp
pushl %eax
pushl $0x0 #for flag
call copy_process
addl $24,%esp #for flag
addl $20,%esp
1: ret
.align 4
@ -237,17 +236,13 @@ sys_clone:
call find_empty_process
testl %eax,%eax
js 1f
pushl %eax
push %gs
pushl %esi
pushl %edi
pushl %ebp
pushl %eax
pushl $0x1 #for flag
call copy_process
addl $24,%esp #for flag
call do_clone
addl $4,%esp
call copy_process_clone
addl $20,%esp
1: ret
hd_interrupt:

Loading…
Cancel
Save