From owner-svn-src-head@FreeBSD.ORG Tue Jul 13 22:30:27 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53FAE106567A; Tue, 13 Jul 2010 22:30:27 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 436FE8FC1D; Tue, 13 Jul 2010 22:30:27 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o6DMURPn074519; Tue, 13 Jul 2010 22:30:27 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o6DMURb6074517; Tue, 13 Jul 2010 22:30:27 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <201007132230.o6DMURb6074517@svn.freebsd.org> From: Warner Losh Date: Tue, 13 Jul 2010 22:30:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r210027 - head/sys/mips/sibyte X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jul 2010 22:30:27 -0000 Author: imp Date: Tue Jul 13 22:30:27 2010 New Revision: 210027 URL: http://svn.freebsd.org/changeset/base/210027 Log: Remove redunant machine/cpuregs.h include. Also, spell things like in machine/cpuregs.h instead of machine/cpu.h. Modified: head/sys/mips/sibyte/sb_machdep.c Modified: head/sys/mips/sibyte/sb_machdep.c ============================================================================== --- head/sys/mips/sibyte/sb_machdep.c Tue Jul 13 22:27:19 2010 (r210026) +++ head/sys/mips/sibyte/sb_machdep.c Tue Jul 13 22:30:27 2010 (r210027) @@ -28,7 +28,6 @@ __FBSDID("$FreeBSD$"); #include -#include #include "opt_ddb.h" #include "opt_kdb.h" @@ -253,7 +252,7 @@ mips_init(void) * code to the XTLB exception vector. */ { - bcopy(MipsTLBMiss, (void *)XTLB_MISS_EXC_VEC, + bcopy(MipsTLBMiss, (void *)MIPS3_XTLB_MISS_EXC_VEC, MipsTLBMissEnd - MipsTLBMiss); mips_icache_sync_all(); @@ -314,7 +313,7 @@ kseg0_map_coherent(void) const int CFG_K0_COHERENT = 5; config = mips_rd_config(); - config &= ~CFG_K0_MASK; + config &= ~MIPS3_CONFIG_K0_MASK; config |= CFG_K0_COHERENT; mips_wr_config(config); } @@ -371,7 +370,7 @@ platform_init_ap(int cpuid) */ clock_int_mask = hard_int_mask(5); ipi_int_mask = hard_int_mask(platform_ipi_intrnum()); - set_intr_mask(ALL_INT_MASK & ~(ipi_int_mask | clock_int_mask)); + set_intr_mask(MIPS_SR_INT_MASK & ~(ipi_int_mask | clock_int_mask)); } int