From owner-p4-projects@FreeBSD.ORG Fri Jul 16 19:30:55 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E273416A4D0; Fri, 16 Jul 2004 19:30:54 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDA2F16A4CE for ; Fri, 16 Jul 2004 19:30:54 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC35843D2D for ; Fri, 16 Jul 2004 19:30:54 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6GJUsGw009364 for ; Fri, 16 Jul 2004 19:30:54 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6GJUsAh009361 for perforce@freebsd.org; Fri, 16 Jul 2004 19:30:54 GMT (envelope-from jhb@freebsd.org) Date: Fri, 16 Jul 2004 19:30:54 GMT Message-Id: <200407161930.i6GJUsAh009361@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin To: Perforce Change Reviews Subject: PERFORCE change 57475 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2004 19:30:55 -0000 http://perforce.freebsd.org/chv.cgi?CH=57475 Change 57475 by jhb@jhb_slimer on 2004/07/16 19:30:25 Hack hack. Try mapping all of the BIOS (0xc0000 - 0xfffff) as read/write to see if that fixes problems people have with PnP BIOS enumeration on Intel motherboards. Affected files ... .. //depot/projects/smpng/sys/i386/i386/locore.s#23 edit Differences ... ==== //depot/projects/smpng/sys/i386/i386/locore.s#23 (text+ko) ==== @@ -787,9 +787,24 @@ movl $1,%ecx fillkptphys(%edx) -/* Map read-only from page 1 to the beginning of the kernel text section */ +#define BIOS_START 0xc0000 +#define BIOS_END 0xfffff + +/* Map read-only from page 1 to the beginning of BIOS */ movl $PAGE_SIZE, %eax xorl %edx,%edx + movl $(BIOS_START - PAGE_SIZE)/PAGE_SIZE,%ecx + fillkptphys(%edx) + +/* Map the BIOS read-write for BIOS calls that want to write to it */ + movl $BIOS_START, %eax + movl $PG_RW,%edx + movl $(BIOS_END + 1 - BIOS_START)/PAGE_SIZE,%ecx + fillkptphys(%edx) + +/* Map read-only from the BIOS to the beginning of the kernel text section */ + movl $BIOS_END + 1, %eax + xorl %edx,%edx movl $R(btext),%ecx addl $PAGE_MASK,%ecx subl %eax,%ecx