From owner-p4-projects@FreeBSD.ORG Mon Jan 21 21:43:06 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D153E16A41B; Mon, 21 Jan 2008 21:43:05 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9418616A417 for ; Mon, 21 Jan 2008 21:43:05 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8515A13C461 for ; Mon, 21 Jan 2008 21:43:05 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m0LLh56g006122 for ; Mon, 21 Jan 2008 21:43:05 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0LLh5jN006119 for perforce@freebsd.org; Mon, 21 Jan 2008 21:43:05 GMT (envelope-from imp@freebsd.org) Date: Mon, 21 Jan 2008 21:43:05 GMT Message-Id: <200801212143.m0LLh5jN006119@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 133817 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2008 21:43:06 -0000 http://perforce.freebsd.org/chv.cgi?CH=133817 Change 133817 by imp@imp_lighthouse on 2008/01/21 21:42:49 Use proper PCPU_SET macros to set curthread and curpcb so this code has a chance of compiling in the SMP case. Affected files ... .. //depot/projects/mips2-jnpr/src/sys/mips/mips/machdep.c#17 edit Differences ... ==== //depot/projects/mips2-jnpr/src/sys/mips/mips/machdep.c#17 (text+ko) ==== @@ -270,9 +270,7 @@ #else pcpu_init(pcpup, 0, sizeof(struct pcpu)); #endif - pcpup->pc_curthread = &thread0; - cpu_thread_alloc(curthread); - pcpup->pc_curpcb = curthread->td_pcb; + cpu_thread_alloc(&thread0); PCPU_SET(curthread, &thread0); PCPU_SET(curpcb, thread0.td_pcb); }