From owner-p4-projects@FreeBSD.ORG Mon May 12 17:40:16 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3714A37B404; Mon, 12 May 2003 17:40:16 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC2C537B401 for ; Mon, 12 May 2003 17:40:15 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 768D043F93 for ; Mon, 12 May 2003 17:40:15 -0700 (PDT) (envelope-from jmallett@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h4D0eF0U047528 for ; Mon, 12 May 2003 17:40:15 -0700 (PDT) (envelope-from jmallett@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4D0eETJ047523 for perforce@freebsd.org; Mon, 12 May 2003 17:40:14 -0700 (PDT) Date: Mon, 12 May 2003 17:40:14 -0700 (PDT) Message-Id: <200305130040.h4D0eETJ047523@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jmallett@freebsd.org using -f From: Juli Mallett To: Perforce Change Reviews Subject: PERFORCE change 31039 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2003 00:40:17 -0000 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;