Fixed some GDT bugs and typos

This commit is contained in:
Arnau Camprubí 2022-06-18 02:25:11 +02:00
pare 0fe84ef325
commit f5f7b7fc73
S'han modificat 2 arxius amb 4 adicions i 4 eliminacions

Veure arxiu

@ -19,7 +19,7 @@ i686_gdt_load:
.reload_cs:
; Reload data segments
mov ax, [ebp + 16]
mov dx, ax
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
@ -27,5 +27,5 @@ i686_gdt_load:
; Restore old call frame
mov esp, ebp
push ebp
pop ebp
ret

Veure arxiu

@ -68,7 +68,7 @@ static gdt_entry g_gdt[] = {
// Kernel 32-bit code segment
GDT_ENTRY(
0,
0xFFFF,
0xFFFFF,
GDT_ACCESS_PRESENT | GDT_ACCESS_RING0 | GDT_ACCESS_CODE_SEGMENT | GDT_ACCESS_CODE_READABLE,
GDT_FLAG_32BIT | GDT_FLAG_GRANULARITY_4K
),
@ -76,7 +76,7 @@ static gdt_entry g_gdt[] = {
// Kernel 32-bit data segment
GDT_ENTRY(
0,
0xFFFF,
0xFFFFF,
GDT_ACCESS_PRESENT | GDT_ACCESS_RING0 | GDT_ACCESS_DATA_SEGMENT | GDT_ACCESS_DATA_WRITEABLE,
GDT_FLAG_32BIT | GDT_FLAG_GRANULARITY_4K
),