mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
The ReadWrite flag isn't needed for code segments (#279)
This commit is contained in:
committed by
GitHub
parent
0ec93fc6fe
commit
fce85e68ee
@@ -196,7 +196,7 @@ section .rodata
|
|||||||
gdt64:
|
gdt64:
|
||||||
dq 0 ; zero entry
|
dq 0 ; zero entry
|
||||||
.code: equ $ - gdt64 ; new
|
.code: equ $ - gdt64 ; new
|
||||||
dq (1<<44) | (1<<47) | (1<<41) | (1<<43) | (1<<53) ; code segment
|
dq (1<<44) | (1<<47) | (1<<43) | (1<<53) ; code segment
|
||||||
.pointer:
|
.pointer:
|
||||||
dw $ - gdt64 - 1
|
dw $ - gdt64 - 1
|
||||||
dq gdt64
|
dq gdt64
|
||||||
|
|||||||
Reference in New Issue
Block a user