Avoid corrupting eax during system call.
This commit is contained in:
parent
6ab267bb9b
commit
bbdb8bd811
|
@ -81,14 +81,12 @@ TRAPHANDLER(t_default, T_DEFAULT);
|
||||||
.globl _alltraps
|
.globl _alltraps
|
||||||
_alltraps:
|
_alltraps:
|
||||||
sub $0x2, %esp
|
sub $0x2, %esp
|
||||||
mov %ds, %eax
|
pushw %ds
|
||||||
push %ax
|
|
||||||
sub $0x2, %esp
|
sub $0x2, %esp
|
||||||
mov %es, %eax
|
pushw %es
|
||||||
push %ax
|
|
||||||
pushal
|
pushal
|
||||||
mov $(GD_KD), %eax
|
mov $(GD_KD), %eax
|
||||||
movl %eax, %ds
|
movw %ax, %ds
|
||||||
movl %eax, %es
|
movw %ax, %es
|
||||||
pushl %esp
|
pushl %esp
|
||||||
call trap
|
call trap
|
||||||
|
|
Loading…
Reference in New Issue
Block a user