summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-08-26 18:18:56 +0000
committerJoursoir <chat@joursoir.net>2021-08-26 18:18:56 +0000
commit7d29a608ae06732093fac7d9e8a46305227a28fd (patch)
tree8f903912b3dde929c7d808ce08774af44692b2d9
parentef5e018be2d2a64cba04da324a2718e9ccb74c36 (diff)
downloadmfsos-7d29a608ae06732093fac7d9e8a46305227a28fd.tar.gz
mfsos-7d29a608ae06732093fac7d9e8a46305227a28fd.tar.bz2
mfsos-7d29a608ae06732093fac7d9e8a46305227a28fd.zip
x86/boot/bootsect: move global var boot_drive
-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