PERFORCE change 28474 for review

Peter Wemm peter at FreeBSD.org
Mon Apr 7 19:32:47 PDT 2003


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

Change 28474 by peter at peter_daintree on 2003/04/07 19:32:29

	It is amazing how many Bad Things Happen(TM) when you overlay one set of
	data structures on top of your page tables.  I was telling the system
	to bootstrap using the original end-of-kernel, and forgot to account
	for the allocpages() calls.  Argh!

Affected files ...

.. //depot/projects/hammer/sys/x86_64/x86_64/machdep.c#47 edit

Differences ...

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

@@ -1147,9 +1147,6 @@
 	int gsel_tss, off, x;
 	struct region_descriptor r_gdt, r_idt;
 	struct pcpu *pc;
-	u_int64_t first;
-
-	first = physfree;
 
 	create_pagetables();
 
@@ -1314,7 +1311,7 @@
 	dblfault_tss.tss_cs = GSEL(GCODE_SEL, SEL_KPL);
 #endif
 
-	getmemsize(kmdp, first);
+	getmemsize(kmdp, physfree);
 	init_param2(physmem);
 
 	/* now running on new page tables, configured,and u/iom is accessible */


More information about the p4-projects mailing list