save and restore segment registers
=> this fixed a bug in the system call "fork"
This commit is contained in:
parent
d91b0d49c2
commit
f4dd038ee5
1 changed files with 8 additions and 8 deletions
|
@ -440,10 +440,10 @@ extern syscall_handler
|
|||
|
||||
; used to realize system calls
|
||||
isrsyscall:
|
||||
;push ds
|
||||
;push fs
|
||||
;push gs
|
||||
;push es
|
||||
push ds
|
||||
push fs
|
||||
push gs
|
||||
push es
|
||||
push ebp
|
||||
push edi
|
||||
push esi
|
||||
|
@ -460,10 +460,10 @@ isrsyscall:
|
|||
pop esi
|
||||
pop edi
|
||||
pop ebp
|
||||
;pop es
|
||||
;pop gs
|
||||
;pop fs
|
||||
;pop ds
|
||||
pop es
|
||||
pop gs
|
||||
pop fs
|
||||
pop ds
|
||||
iret
|
||||
|
||||
global irq0
|
||||
|
|
Loading…
Add table
Reference in a new issue