We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cc9f00 commit 688978aCopy full SHA for 688978a
kernel/src/ap/ap_startup.asm
@@ -107,7 +107,7 @@ protectedStart:
107
[BITS 64]
108
longStart:
109
; Set data segments
110
- mov bx, 0x10
+ mov bx, 0x20
111
mov ds, bx
112
mov ss, bx
113
@@ -128,7 +128,7 @@ interlock:
128
129
; Pointer to the GDT
130
gdtPointer:
131
- dw 31
+ dw 39
132
dd gdt
133
134
; Basic setup GDT
@@ -142,7 +142,7 @@ gdt:
142
; code descriptor
143
dw 0xFFFF
144
dw 0x0000
145
- dw 0x9800
+ dw 0x9A00
146
dw 0x00CF
147
148
; data descriptor
@@ -157,4 +157,8 @@ gdt:
157
dw 0x9A00
158
dw 0x00A0
159
160
- ; TODO 64 bit data segment?
+ ; data descriptor (64-bit)
161
+ dw 0xFFFF
162
+ dw 0x0000
163
+ dw 0x9200
164
+ dw 0x00A0
0 commit comments