X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86%2Fdesctab.asm;h=43bd8e4c2eb31766db6470b20e3643fe4a748fbc;hb=54746c855c6e2fe42fde9f93b0ce3f41aeefc2e5;hp=737570b01bf837d867f4d004f26d62d3ab7ec652;hpb=670fa3a07996192b3bb8f30bbe17834f3d29df9f;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86/desctab.asm b/Kernel/arch/x86/desctab.asm index 737570b0..43bd8e4c 100644 --- a/Kernel/arch/x86/desctab.asm +++ b/Kernel/arch/x86/desctab.asm @@ -29,6 +29,7 @@ gGDTPtr: dd gGDT ; IDT ALIGN 8 +[global gIDT] gIDT: times 256 dd 0x00080000,0x00000F00 [global gIDTPtr] @@ -146,7 +147,6 @@ Isr%1: %macro DEF_IRQ 1 [global Isr%1] Isr%1: - ;cli ; HACK! push 0 push %1 jmp IRQCommon @@ -212,6 +212,12 @@ ErrorCommon: push fs push gs + mov ax, 0x10 + mov ds, ax + mov es, ax + mov fs, ax + mov gs, ax + push esp call ErrorHandler add esp, 4 @@ -258,6 +264,12 @@ IRQCommon: push fs push gs + mov ax, 0x10 + mov ds, ax + mov es, ax + mov fs, ax + mov gs, ax + push esp call IRQ_Handler add esp, 4 @@ -281,6 +293,12 @@ SchedulerBase: push fs push gs + mov ax, 0x10 + mov ds, ax + mov es, ax + mov fs, ax + mov gs, ax + mov eax, [esp+12*4] ; CPU Number push eax ; Pus as argument