Update system_call.s

master
mp6sgfx3h 2 years ago
parent 083778d87c
commit 2a599e4194

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

Loading…
Cancel
Save