From: hpa Date: Fri, 27 Feb 1998 03:46:57 +0000 (+0000) Subject: Add workaround for AMI/Intel BIOS bug. X-Git-Tag: syslinux-1.33~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b898d320b54bb74da1b17d9504cea706c2446d03;p=platform%2Fupstream%2Fsyslinux.git Add workaround for AMI/Intel BIOS bug. --- diff --git a/NEWS b/NEWS index 37abb0b..437850b 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,8 @@ Changes in 1.33: * Bug fix in the Linux installer. + * Added a workaround for a bug in certain AMI/Intel BIOSes + when booting from CD-ROM. + * Documentation changes. Changes in 1.32: * FAT16 filesystems are now supported. diff --git a/ldlinux.asm b/ldlinux.asm index 6e7328e..d523ff7 100644 --- a/ldlinux.asm +++ b/ldlinux.asm @@ -397,7 +397,9 @@ floppy_table equ $ ; No sense in wasting memory, overwrite start start: cli ; No interrupts yet, please - xor ax,ax + jmp 0:start1 ; Stupid Intel BIOS jumps to 07C0:0000 not 0000:7C00 +start1: xor ax,ax + mov ds,ax mov es,ax mov ss,ax mov sp,StackBuf ; Just below BSS @@ -633,6 +635,7 @@ disk_try_again: push dx jc disk_error ; ; It seems the following test fails on some machines (buggy BIOS?) +; Especially Phoenix BIOS 4.03 seems to fail if this is enabled ; ; cmp al,bl ; Check that we got what we asked for ; jne disk_error @@ -660,7 +663,7 @@ gls_nonewcyl: pop bp ; Sectors left to transfer ja gls_nexttrack return: ret -bailmsg db 'Boot failed: change disks and press any key', 0Dh, 0Ah, 0 +bailmsg db 'Boot failed: press any key to retry', 0Dh, 0Ah, 0 bs_checkpt equ $ ; Must be <= 1E3h