From 7d29a608ae06732093fac7d9e8a46305227a28fd Mon Sep 17 00:00:00 2001 From: Joursoir Date: Thu, 26 Aug 2021 18:18:56 +0000 Subject: x86/boot/bootsect: move global var boot_drive --- arch/x86/boot/bootsect.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'arch') 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 -- cgit v1.2.3-18-g5258