From owner-p4-projects@FreeBSD.ORG Mon Jan 28 20:01:13 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0295216A419; Mon, 28 Jan 2008 20:01:13 +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 A421F16A417 for ; Mon, 28 Jan 2008 20:01:12 +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 53CCD13C448 for ; Mon, 28 Jan 2008 20:01:12 +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 m0SK1Cgi016606 for ; Mon, 28 Jan 2008 20:01:12 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0SK1Ccd016603 for perforce@freebsd.org; Mon, 28 Jan 2008 20:01:12 GMT (envelope-from imp@freebsd.org) Date: Mon, 28 Jan 2008 20:01:12 GMT Message-Id: <200801282001.m0SK1Ccd016603@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 134316 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, 28 Jan 2008 20:01:13 -0000 http://perforce.freebsd.org/chv.cgi?CH=134316 Change 134316 by imp@imp_lighthouse on 2008/01/28 20:00:24 Minor nits. Also question the need for the YAMON and CFE sections here. Affected files ... .. //depot/projects/mips2-jnpr/src/sys/mips/mips/locore.S#14 edit Differences ... ==== //depot/projects/mips2-jnpr/src/sys/mips/mips/locore.S#14 (text+ko) ==== @@ -120,13 +120,13 @@ * preserved (namely, clearing interrupt bits), and set * bits we want to explicitly set. */ - mfc0 t2, MIPS_COP_0_STATUS + mfc0 t2, COP_0_STATUS_REG and t2, t0 or t2, t1 - mtc0 t2, MIPS_COP_0_STATUS + mtc0 t2, COP_0_STATUS_REG COP0_SYNC /* Extra nops for the FPU to spin up. */ - mfc0 t2, MIPS_COP_0_STATUS + mfc0 t2, COP_0_STATUS_REG /* Read and store the PrID FPU ID for CPU identification. */ mfc0 t0, MIPS_COP_0_PRID @@ -143,19 +143,23 @@ */ li t1, 0x0 #endif - sw t0, cpu_id - sw t1, fpu_id + sw t0, _C_LABEL(cpu_id) + sw t1, _C_LABEL(fpu_id) /* * Initialize stack and call machine startup. */ - la sp, topstack - START_FRAME + la sp, _C_LABEL(topstack) - START_FRAME la gp, _C_LABEL(_gp) sw zero, START_FRAME - 4(sp) # Zero out old ra for debugger + /*xxximp + * now that we pass a0...a3 to the platform_init routine, do we need + * to stash this stuff here? + */ #ifdef YAMON /* Save YAMON boot environment pointer */ - sw a2, fenvp + sw a2, _C_LABEL(fenvp) #endif #ifdef CFE /* @@ -163,8 +167,8 @@ */ li t1, 0x43464531 bne a3, t1, no_cfe /* Check for "CFE1" signature */ - sw a0, cfe_handle /* Firmware data segment */ - sw a2, cfe_vector /* Firmware entry vector */ + sw a0, _C_LABEL(cfe_handle)/* Firmware data segment */ + sw a2, _C_LABEL(cfe_vector)/* Firmware entry vector */ no_cfe: #endif