Date: Mon, 12 May 2003 17:40:14 -0700 (PDT) From: Juli Mallett <jmallett@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 31039 for review Message-ID: <200305130040.h4D0eETJ047523@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=31039 Change 31039 by jmallett@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305130040.h4D0eETJ047523>