1 |
/* -*-Asm-*- */ |
/* -*-Asm-*- */ |
2 |
/* |
/* |
3 |
* GRUB -- GRand Unified Bootloader |
* GRUB -- GRand Unified Bootloader |
4 |
* Copyright (C) 1999,2000 Free Software Foundation, Inc. |
* Copyright (C) 1999,2000,2001 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 |
148 |
movw $0x55aa, %bx |
movw $0x55aa, %bx |
149 |
int $0x13 |
int $0x13 |
150 |
|
|
151 |
|
/* |
152 |
|
* %dl may have been clobbered by INT 13, AH=41H. |
153 |
|
* This happens, for example, with AST BIOS 1.04. |
154 |
|
*/ |
155 |
|
popw %dx |
156 |
|
pushw %dx |
157 |
|
|
158 |
/* use CHS if fails */ |
/* use CHS if fails */ |
159 |
jc chs_mode |
jc chs_mode |
160 |
cmpw $0xaa55, %bx |
cmpw $0xaa55, %bx |