fallback to CHS if LBA fails in stage1.

This commit is contained in:
okuji 1999-11-13 05:43:19 +00:00
parent 8bc82ce256
commit 9f88649c8c
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
1999-11-13 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
From Pavel Roskin:
* stage1/stage1.S (lba_mode): Jump to chs_mode if INT 13 AH=42h
fails.
1999-11-12 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp> 1999-11-12 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
Do not use the device map file unless --device-map is specified. Do not use the device map file unless --device-map is specified.

View file

@ -200,8 +200,8 @@ lba_mode:
movb $0x42, %ah movb $0x42, %ah
int $0x13 int $0x13
/* should use CHS instead? */ /* LBA read is not supported, so fallback to CHS. */
jc read_error jc chs_mode
movw $STAGE1_BUFFERSEG, %bx movw $STAGE1_BUFFERSEG, %bx
jmp copy_buffer jmp copy_buffer