Fix the trap function.
God fucking damn it 16 bit registers!
This commit is contained in:
parent
8120dfde65
commit
667f2df4cc
|
@ -81,9 +81,11 @@ TRAPHANDLER(t_default, T_DEFAULT);
|
||||||
.globl _alltraps
|
.globl _alltraps
|
||||||
_alltraps:
|
_alltraps:
|
||||||
sub $0x2, %esp
|
sub $0x2, %esp
|
||||||
push %ds
|
mov %ds, %eax
|
||||||
|
push %ax
|
||||||
sub $0x2, %esp
|
sub $0x2, %esp
|
||||||
push %es
|
mov %es, %eax
|
||||||
|
push %ax
|
||||||
pushal
|
pushal
|
||||||
mov $(GD_KD), %eax
|
mov $(GD_KD), %eax
|
||||||
movl %eax, %ds
|
movl %eax, %ds
|
||||||
|
|
Loading…
Reference in New Issue
Block a user