1 |
/* -*-Asm-*- */ |
/* -*-Asm-*- */ |
2 |
/* |
/* |
3 |
* GRUB -- GRand Unified Bootloader |
* GRUB -- GRand Unified Bootloader |
4 |
* Copyright (C) 1999,2000,2001 Free Software Foundation, Inc. |
* Copyright (C) 1999,2000,2001,2002 Free Software Foundation, Inc. |
5 |
* |
* |
6 |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
7 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
108 |
cli /* we're not safe here! */ |
cli /* we're not safe here! */ |
109 |
|
|
110 |
/* |
/* |
111 |
|
* This is a workaround for buggy BIOSes which don't pass boot |
112 |
|
* drive correctly. If GRUB is installed into a HDD, do |
113 |
|
* "orb $0x80, %dl", otherwise "orb $0x00, %dl" (i.e. nop). |
114 |
|
*/ |
115 |
|
.byte 0x80, 0xca |
116 |
|
boot_drive_mask: |
117 |
|
.byte 0x00 |
118 |
|
|
119 |
|
/* |
120 |
* ljmp to the next instruction because some bogus BIOSes |
* ljmp to the next instruction because some bogus BIOSes |
121 |
* jump to 07C0:0000 instead of 0000:7C00. |
* jump to 07C0:0000 instead of 0000:7C00. |
122 |
*/ |
*/ |