Change license from GPLv3 to LGPLv3.
[seabios.git] / src / boot.c
index 7b64e8612473d1530f1f2ecd41dae7f0f138da5e..e0fb67a33fbff35837354e5242af613c3e383e3d 100644 (file)
@@ -3,12 +3,11 @@
 // Copyright (C) 2008  Kevin O'Connor <kevin@koconnor.net>
 // Copyright (C) 2002  MandrakeSoft S.A.
 //
-// This file may be distributed under the terms of the GNU GPLv3 license.
+// This file may be distributed under the terms of the GNU LGPLv3 license.
 
 #include "util.h" // irq_enable
 #include "biosvar.h" // GET_EBDA
 #include "config.h" // CONFIG_*
-#include "ata.h" // ata_detect
 #include "disk.h" // cdrom_boot
 #include "bregs.h" // struct bregs
 #include "boot.h" // struct ipl_s
@@ -152,8 +151,9 @@ try_boot(u16 seq_nr)
             return;
         }
 
-        bootdrv = GET_GLOBAL(CDEMU.emulated_drive);
-        bootseg = GET_GLOBAL(CDEMU.load_segment);
+        u16 ebda_seg = get_ebda_seg();
+        bootdrv = GET_EBDA2(ebda_seg, cdemu.emulated_drive);
+        bootseg = GET_EBDA2(ebda_seg, cdemu.load_segment);
         /* Canonicalize bootseg:bootip */
         bootip = (bootseg & 0x0fff) << 4;
         bootseg &= 0xf000;