From a6d7cb06db03ee0b758ecb079fd3f5b15128f931 Mon Sep 17 00:00:00 2001 From: okuji Date: Tue, 16 Nov 1999 05:58:37 +0000 Subject: [PATCH] check for the support bitmap in stage1. --- ChangeLog | 7 +++++++ stage1/stage1.S | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b2ffa69fa..b1c904115 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +1999-11-16 OKUJI Yoshinori + + From Pavel Roskin: + * stage1/stage1.S: Check for the API subset support bitmap + returned by INT 13 AH=48h, and jump to chs_mode if AH=42h is not + supported. + 1999-11-13 OKUJI Yoshinori * stage2/builtins.c (install_func): When using a Stage 1.5, set diff --git a/stage1/stage1.S b/stage1/stage1.S index 54bcfe882..a28adee67 100644 --- a/stage1/stage1.S +++ b/stage1/stage1.S @@ -147,7 +147,11 @@ real_start: jc chs_mode cmpw $0xaa55, %bx jne chs_mode - + + /* check if AH=0x42 is supported */ + andw $1, %cx + jz chs_mode + /* get the geometry (limited to 2TB!) */ movb $0x48, %ah movw $STAGE1_DRP_ADDR, %si