patch-1.3.3 linux/arch/i386/boot/setup.S
Next file: linux/arch/i386/lib/Makefile
Previous file: linux/arch/i386/boot/compressed/misc.c
Back to the patch index
Back to the overall index
-  Lines: 15
 -  Date:
Sun Jun 18 18:11:37 1995
 -  Orig file: 
v1.3.2/linux/arch/i386/boot/setup.S
 -  Orig date: 
Tue Jun 13 15:40:16 1995
 
diff -u --recursive --new-file v1.3.2/linux/arch/i386/boot/setup.S linux/arch/i386/boot/setup.S
@@ -160,10 +160,12 @@
 	int	0x10
 	mov	bx,ax
 	mov	ax,#0x5019
+	movb	[15],#0		! by default, no VGA
 	cmp	bl,#0x1a	! 1a means VGA, anything else EGA or lower
-	jne	novga	
+	jne	novga
+	movb	[15],#1		! we've detected a VGA
 	call	chsvga
-novga:	mov	[14],ax
+novga:	mov	[14],al
 	mov	ah,#0x03	! read cursor pos
 	xor	bh,bh		! clear bh
 	int	0x10		! save it in known place, con_init fetches
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this