summaryrefslogtreecommitdiffstats
path: root/arch/x86/boot/bootsect.s
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/boot/bootsect.s')
-rw-r--r--arch/x86/boot/bootsect.s6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/boot/bootsect.s b/arch/x86/boot/bootsect.s
index e2ab91c..16c2052 100644
--- a/arch/x86/boot/bootsect.s
+++ b/arch/x86/boot/bootsect.s
@@ -109,6 +109,9 @@ gdt_data: # the data segment descriptor
gdt_end:
# Global variables
+boot_drive:
+ .byte 0
+
gdt_descriptor:
# Size of GDT, always less one of the true size
.word gdt_end - gdt_start - 1
@@ -126,9 +129,6 @@ boot_load_kern_msg:
disk_error_msg:
.asciz "Disk read error!"
-boot_drive:
- .byte 0
-
# Bootsector padding
.space 512 - 2 - (. - _start), 0
.word MAGIC