From 47be053721ffd099f126e845809af35b0f6b8387 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Thu, 26 Aug 2021 18:19:40 +0000 Subject: x86/boot/bootsect: improve comments about gdt struct --- arch/x86/boot/bootsect.s | 6 ++++-- 1 file 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" -- cgit v1.2.3-18-g5258