comparison cos/kernel/goto64.asm @ 33:d8185ddb6c7b

Added more interrupt handlers
author windel
date Sun, 15 Jan 2012 13:39:49 +0100
parents 3a6a9b929db0
children 8012221dd740
comparison
equal deleted inserted replaced
32:3a6a9b929db0 33:d8185ddb6c7b
212 mov fs, ax 212 mov fs, ax
213 mov gs, ax 213 mov gs, ax
214 214
215 lgdt [gdt64pointer] ; Reload GDT in 64 bits mode 215 lgdt [gdt64pointer] ; Reload GDT in 64 bits mode
216 216
217 ; Test:
218 mov ax, 0x10
219 mov ds, ax
220 ; End of test
221
217 ; TODO: determine a good place for the kernel stack. 222 ; TODO: determine a good place for the kernel stack.
218 mov rsp, 0xA000 ; Setup stack pointer. 223 mov rsp, 0xA000 ; Setup stack pointer.
219 224
220 extern kmain 225 extern kmain
221 call kmain ; Call kernel in C-code 226 call kmain ; Call kernel in C-code