Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Apr 2003 19:32:45 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 28474 for review
Message-ID:  <200304080232.h382WjQK069545@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28474

Change 28474 by peter@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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304080232.h382WjQK069545>