fixed addr gdt, serial

This commit is contained in:
pantonshire committed 2025-07-26 17:40:48 +01:00
1 parent b0dffe7bc8
commit 988d3d601d
9 files changed
+189 -24

No files matched your search

+6 -3
View File
@@ -36,6 +36,12 @@ s2_main:
mov cx, 0x3f00
int 0x10
; Copy the GDT
mov cx, GDT_FLAT_LEN
mov si, gdt_flat
mov di, GDT_ADDR
rep movsb
; Ensure interrupts are definitely disabled.
cli
@@ -124,7 +130,6 @@ global gdt_flat_slice
; - 7: present (must be set)
;
; FIXME: copy this to a fixed memory location
align 8
gdt_flat:
; First GDT entry must be 0.
@@ -161,8 +166,6 @@ gdt_flat:
11001111b, \
0x00
global gdt_flat
GDT_FLAT_LEN equ ($ - gdt_flat)
GDT_FLAT_IDX_CODE_32 equ (gdt_flat.segment_code_32 - gdt_flat)