summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-08-26 18:19:40 +0000
committerJoursoir <chat@joursoir.net>2021-08-26 18:19:40 +0000
commit47be053721ffd099f126e845809af35b0f6b8387 (patch)
treecb214af92546bae90cbc8c52de18180c32315fb8
parent7d29a608ae06732093fac7d9e8a46305227a28fd (diff)
downloadmfsos-47be053721ffd099f126e845809af35b0f6b8387.tar.gz
mfsos-47be053721ffd099f126e845809af35b0f6b8387.tar.bz2
mfsos-47be053721ffd099f126e845809af35b0f6b8387.zip
x86/boot/bootsect: improve comments about gdt struct
-rw-r--r--arch/x86/boot/bootsect.s6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/boot/bootsect.s b/arch/x86/boot/bootsect.s
index 16c2052..5932445 100644
--- a/arch/x86/boot/bootsect.s
+++ b/arch/x86/boot/bootsect.s
@@ -113,9 +113,11 @@ boot_drive:
.byte 0
gdt_descriptor:
- # Size of GDT, always less one of the true size
+ # The 6-byte GDT structure containing:
+ # - GDT size, 2 bytes (size always less one of the real size):
.word gdt_end - gdt_start - 1
- .long gdt_start # Start address of our GDT
+ # - GDT address, 4 bytes:
+ .long gdt_start
boot_real_mode_msg:
.asciz "Started mfsos in 16-bit real mode\r\n"