git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding start of x86_64 port
[tpg/acess2.git]
/
Kernel
/
arch
/
x86
/
desctab.asm
diff --git
a/Kernel/arch/x86/desctab.asm
b/Kernel/arch/x86/desctab.asm
index
b5d060d
..
43bd8e4
100644
(file)
--- a/
Kernel/arch/x86/desctab.asm
+++ b/
Kernel/arch/x86/desctab.asm
@@
-29,6
+29,7
@@
gGDTPtr:
dd gGDT
; IDT
ALIGN 8
dd gGDT
; IDT
ALIGN 8
+[global gIDT]
gIDT:
times 256 dd 0x00080000,0x00000F00
[global gIDTPtr]
gIDT:
times 256 dd 0x00080000,0x00000F00
[global gIDTPtr]
@@
-146,7
+147,6
@@
Isr%1:
%macro DEF_IRQ 1
[global Isr%1]
Isr%1:
%macro DEF_IRQ 1
[global Isr%1]
Isr%1:
- ;cli ; HACK!
push 0
push %1
jmp IRQCommon
push 0
push %1
jmp IRQCommon
@@
-205,12
+205,19
@@
Isr240:
; ---------------------
[extern ErrorHandler]
ErrorCommon:
; ---------------------
[extern ErrorHandler]
ErrorCommon:
+ ;xchg bx, bx
pusha
push ds
push es
push fs
push gs
pusha
push ds
push es
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
push esp
call ErrorHandler
add esp, 4
@@
-257,6
+264,12
@@
IRQCommon:
push fs
push gs
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
push esp
call IRQ_Handler
add esp, 4
@@
-280,6
+293,12
@@
SchedulerBase:
push fs
push gs
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
mov eax, [esp+12*4] ; CPU Number
push eax ; Pus as argument
UCC
git Repository :: git.ucc.asn.au