Fix the trap function.

God fucking damn it 16 bit registers!
This commit is contained in:
Danila Fedorin 2019-04-23 02:06:11 -07:00
parent 8120dfde65
commit 667f2df4cc

View File

@ -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