1 |
/* |
/* |
2 |
* GRUB -- GRand Unified Bootloader |
* GRUB -- GRand Unified Bootloader |
3 |
* Copyright (C) 1999,2000 Free Software Foundation, Inc. |
* Copyright (C) 1999,2000,2001 Free Software Foundation, Inc. |
4 |
* |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
6 |
* 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 |
96 |
/* load logical sector start */ |
/* load logical sector start */ |
97 |
movl (%di), %ebx |
movl (%di), %ebx |
98 |
|
|
|
/* check for the geometry */ |
|
|
#ifdef NO_BUGGY_BIOS_IN_THE_WORLD |
|
|
cmpl %ecx, %ebx |
|
|
jge geometry_error |
|
|
#endif /* NO_BUGGY_BIOS_IN_THE_WORLD */ |
|
|
|
|
99 |
/* the maximum is limited to 0x7f because of Phoenix EDD */ |
/* the maximum is limited to 0x7f because of Phoenix EDD */ |
100 |
xorl %eax, %eax |
xorl %eax, %eax |
101 |
movb $0x7f, %al |
movb $0x7f, %al |