2005-07-17 Yoshinori Okuji <okuji@enbug.org>
* boot/i386/pc/boot.S (boot_drive_check): New label. * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New macro. * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes which do not pass a boot drive correctly. Copied from GRUB Legacy.
This commit is contained in:
parent
e293232b8e
commit
f806d18efd
4 changed files with 42 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* GRUB -- GRand Unified Bootloader
|
||||
* Copyright (C) 1999,2000,2002 Free Software Foundation, Inc.
|
||||
* Copyright (C) 1999,2000,2002,2005 Free Software Foundation, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -47,6 +47,9 @@
|
|||
/* The offset of KERNEL_SEGMENT. */
|
||||
#define GRUB_BOOT_MACHINE_KERNEL_SEGMENT 0x48
|
||||
|
||||
/* The offset of BOOT_DRIVE_CHECK. */
|
||||
#define GRUB_BOOT_MACHINE_DRIVE_CHECK 0x4b
|
||||
|
||||
/* The offset of a magic number used by Windows NT. */
|
||||
#define GRUB_BOOT_MACHINE_WINDOWS_NT_MAGIC 0x1b8
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue