From a033c6beb39fb2c324254821494bf1273e027828 Mon Sep 17 00:00:00 2001 From: okuji Date: Tue, 11 Jan 2000 09:33:09 +0000 Subject: [PATCH] don't check if AH=42h is supported in stage1. --- ChangeLog | 6 ++++++ stage1/stage1.S | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6bed15ad5..cee27499f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-01-11 OKUJI Yoshinori + + * stage1/stage1.S [!NO_BUGGY_BIOS_IN_THE_WORLD]: Don't check if + LBA read is supported. Anyway, fallback to the CHS mode if + fails. + 2000-01-10 OKUJI Yoshinori * stage2/bios.c (NO_INT13_FALLBACK): Undefined. diff --git a/stage1/stage1.S b/stage1/stage1.S index a28adee67..5b235b684 100644 --- a/stage1/stage1.S +++ b/stage1/stage1.S @@ -1,7 +1,8 @@ +/* -*-Asm-*- */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 1996 Erich Boleyn - * Copyright (C) 1999 Free Software Foundation, Inc. + * Copyright (C) 1999,2000 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 @@ -148,9 +149,11 @@ real_start: cmpw $0xaa55, %bx jne chs_mode +#ifdef NO_BUGGY_BIOS_IN_THE_WORLD /* check if AH=0x42 is supported */ andw $1, %cx jz chs_mode +#endif /* get the geometry (limited to 2TB!) */ movb $0x48, %ah