PERFORCE change 57475 for review

John Baldwin jhb at FreeBSD.org
Fri Jul 16 12:30:55 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=57475

Change 57475 by jhb at 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


More information about the p4-projects mailing list