PERFORCE change 28527 for review

Peter Wemm peter at FreeBSD.org
Tue Apr 8 09:50:45 PDT 2003


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

Change 28527 by peter at peter_daintree on 2003/04/08 09:50:09

	bracket PSE support code in #if ENABLE_PSE so I dont accidently 
	remove it as #if 0 code.

Affected files ...

.. //depot/projects/hammer/sys/x86_64/x86_64/machdep.c#51 edit
.. //depot/projects/hammer/sys/x86_64/x86_64/pmap.c#21 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/x86_64/machdep.c#51 (text+ko) ====

@@ -1090,7 +1090,7 @@
 		((pt_entry_t *)KPTphys)[i] |= PG_RW | PG_V;
 	}
 
-#if 0
+#if ENABLE_PSE
 	/* Map from zero to end of allocations under 2M pages */
 	for (i = 0; (i << PDRSHIFT) < physfree; i++) {
 		((pd_entry_t *)IdlePTD)[i] = i << PDRSHIFT;

==== //depot/projects/hammer/sys/x86_64/x86_64/pmap.c#21 (text+ko) ====

@@ -250,7 +250,7 @@
 {
 	vm_offset_t newaddr = addr;
 
-#if 0
+#if ENABLE_PSE
 	newaddr = (addr + (NBPDR - 1)) & ~(NBPDR - 1);
 #endif
 	return newaddr;
@@ -364,7 +364,7 @@
 /*
  * Initialize the 2MB page size flag
  */
-#if 0
+#if ENABLE_PSE
 	pseflag = PG_PS;
 #endif
 


More information about the p4-projects mailing list