Try long mode

This commit is contained in:
Baptiste Wicht 2013-10-10 18:07:33 +02:00
parent d71f2d4abc
commit ec8213c424

View File

@ -49,6 +49,8 @@ _start:
pm_start:
jmp $
; Update segments
mov ax, DATA_SELECTOR-GDT64
mov ds, ax
@ -107,6 +109,8 @@ lm_start:
kernel_header_1 db 'Welcome to Thor OS!', 0
kernel_header_2 db '******************************', 0
; Global Descriptors Table
GDT64:
NULL_SELECTOR:
dw GDT_LENGTH ; limit of GDT