From owner-freebsd-bugs Mon Jan 17 12:50:12 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 59FEB14F29 for ; Mon, 17 Jan 2000 12:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA23856; Mon, 17 Jan 2000 12:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from green.dyndns.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 7F4D214FC5 for ; Mon, 17 Jan 2000 12:42:01 -0800 (PST) (envelope-from green@green.dyndns.org) Received: (from green@localhost) by green.dyndns.org (8.9.3/8.9.3) id PAA95336; Mon, 17 Jan 2000 15:41:08 -0500 (EST) (envelope-from green) Message-Id: <200001172041.PAA95336@green.dyndns.org> Date: Mon, 17 Jan 2000 15:41:08 -0500 (EST) From: green@freebsd.org Reply-To: green@freebsd.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: i386/16164: "vga" attach fails if video card not whacked into shape Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 16164 >Category: i386 >Synopsis: "vga"/"sc" don't work when a video card is not whacked into shape >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 17 12:50:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Brian Fundakowski Feldman >Release: FreeBSD 4.0-CURRENT i386 >Organization: The FreeBSD Project >Environment: It happens with -current as of any time, my AMI BIOS from a few months ago (latest), and latest working BIOS (1.20) for my SIIG66 HPT366 controller. >Description: The HPT366's BIOS makes a highly lame video mode change and things are very screwy; the BIOS doesn't reset the video card after that, though I don't know if it _should_, and FreeBSD has a cow with it. The "vga" and "sc" devices don't work, VESA fails, and the system isn't usable from the console. >How-To-Repeat: I suppose you have to have the same hardware, or hardware which also causes this problem. >Fix: This knocks the video card into shape, and FreeBSD works after it runs. This was submitted to me by W. G. Hicks, but a better place should really be found for it. It definitely seems to be necessary. Index: i386/boot2/boot1.s =================================================================== RCS file: /usr2/ncvs/src/sys/boot/i386/boot2/boot1.s,v retrieving revision 1.10 diff -u -r1.10 boot1.s --- i386/boot2/boot1.s 1999/08/28 00:40:01 1.10 +++ i386/boot2/boot1.s 2000/01/14 06:53:20 @@ -58,7 +58,10 @@ # Bootstrap -main: cld # String ops inc +main: movb $0x0,%ah + movb $0x3,%al + int $0x10 + cld # String ops inc xorl %ecx,%ecx # Zero movl %cx,%es # Address movl %cx,%ds # data >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message