mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-14 06:56:51 -04:00
Try long mode
This commit is contained in:
parent
d71f2d4abc
commit
ec8213c424
@ -49,6 +49,8 @@ _start:
|
|||||||
|
|
||||||
pm_start:
|
pm_start:
|
||||||
|
|
||||||
|
jmp $
|
||||||
|
|
||||||
; Update segments
|
; Update segments
|
||||||
mov ax, DATA_SELECTOR-GDT64
|
mov ax, DATA_SELECTOR-GDT64
|
||||||
mov ds, ax
|
mov ds, ax
|
||||||
@ -107,6 +109,8 @@ lm_start:
|
|||||||
kernel_header_1 db 'Welcome to Thor OS!', 0
|
kernel_header_1 db 'Welcome to Thor OS!', 0
|
||||||
kernel_header_2 db '******************************', 0
|
kernel_header_2 db '******************************', 0
|
||||||
|
|
||||||
|
; Global Descriptors Table
|
||||||
|
|
||||||
GDT64:
|
GDT64:
|
||||||
NULL_SELECTOR:
|
NULL_SELECTOR:
|
||||||
dw GDT_LENGTH ; limit of GDT
|
dw GDT_LENGTH ; limit of GDT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user