aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64/src/boot/boot.s5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86_64/src/boot/boot.s b/arch/x86_64/src/boot/boot.s
index 2decf26..f3d9585 100644
--- a/arch/x86_64/src/boot/boot.s
+++ b/arch/x86_64/src/boot/boot.s
@@ -60,6 +60,7 @@ stack_top:
/**
* A valid Global Descriptor Table is still required in long mode.
*
+ * Bit 41: "A" in the access byte => mark the segment as accessed.
* Bit 41: "RW" in the access byte => mark the segment as readable (code) or writable (data).
* Bit 43: "E" in the access byte => mark the segment as executable.
* Bit 44: "S" in the access byte => mark the segment as code or data.
@@ -71,9 +72,9 @@ global_descriptor_table:
global_descriptor_table_null = . - global_descriptor_table
.quad 0
global_descriptor_table_code = . - global_descriptor_table
-.quad (1<<41) | (1<<43) | (1<<44) | (1<<47) | (1<<53)
+.quad (1<<40) | (1<<41) | (1<<43) | (1<<44) | (1<<47) | (1<<53)
global_descriptor_table_data = . - global_descriptor_table
-.quad (1<<41) | (1<<44) | (1<<47)
+.quad (1<<40) | (1<<41) | (1<<44) | (1<<47)
global_descriptor_table_end:
/**