réplica de
https://github.com/Arnau478/quark.git
synced 2024-11-23 12:58:07 +01:00
Fixed some GDT bugs and typos
This commit is contained in:
pare
0fe84ef325
commit
f5f7b7fc73
S'han modificat 2 arxius amb 4 adicions i 4 eliminacions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
),
|
||||
|
|
Loading…
Referencia en una nova incidència