PERFORCE change 31039 for review

Juli Mallett jmallett at FreeBSD.org
Mon May 12 17:40:17 PDT 2003


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

Change 31039 by jmallett at jmallett_dalek on 2003/05/12 17:40:05

	Setup uarea for proc/thread0.  This fixes use of a NULL
	resource struct, among other things.

Affected files ...

.. //depot/projects/mips/sys/mips/mips/machdep.c#22 edit

Differences ...

==== //depot/projects/mips/sys/mips/mips/machdep.c#22 (text+ko) ====

@@ -179,6 +179,7 @@
 
 static struct pcpu pcpu0;
 struct pcpu *pcpup = &pcpu0;
+char uarea0[UAREA_PAGES * PAGE_SIZE];
 
 struct cpu_info cpu_info_store;
 
@@ -190,6 +191,8 @@
 {
 	cpu_identify();
 	proc_linkup(&proc0, &ksegrp0, &kse0, &thread0);
+	proc0.p_uarea = (struct user *)uarea0;
+	proc0.p_stats = &proc0.p_uarea->u_stats;
 	thread0.td_kstack = kstack0;
 	pcpu_init(pcpup, 0, sizeof(struct pcpu));
 	pcpup->pc_curthread = &thread0;


More information about the p4-projects mailing list