From owner-p4-projects@FreeBSD.ORG Thu Jan 3 21:16:25 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6F1BC16A469; Thu, 3 Jan 2008 21:16:25 +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 344F316A41B for ; Thu, 3 Jan 2008 21:16:25 +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 24FA613C467 for ; Thu, 3 Jan 2008 21:16:25 +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 m03LGPAZ033244 for ; Thu, 3 Jan 2008 21:16:25 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m03LGPNn033241 for perforce@freebsd.org; Thu, 3 Jan 2008 21:16:25 GMT (envelope-from imp@freebsd.org) Date: Thu, 3 Jan 2008 21:16:25 GMT Message-Id: <200801032116.m03LGPNn033241@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 132426 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: Thu, 03 Jan 2008 21:16:25 -0000 http://perforce.freebsd.org/chv.cgi?CH=132426 Change 132426 by imp@imp_paco-paco on 2008/01/03 21:16:17 cpu_thread_setup -> cpu_thread_alloc remove redundant decl make sure that FLASH addresses are defined before use cpu_throw seems redundant now, so elimiante it. Affected files ... .. //depot/projects/mips2-jnpr/src/sys/mips/mips/vm_machdep.c#4 edit Differences ... ==== //depot/projects/mips2-jnpr/src/sys/mips/mips/vm_machdep.c#4 (text+ko) ==== @@ -235,7 +235,7 @@ } void -cpu_thread_setup(struct thread *td) +cpu_thread_alloc(struct thread *td) { pt_entry_t *pte; int i; @@ -362,8 +362,6 @@ return((int)va); } -SYSCTL_DECL(_vm_stats_misc); - /* * Implement the pre-zeroed page mechanism. * This routine is called from the idle loop. @@ -390,7 +388,11 @@ is_cacheable_mem(vm_offset_t pa) { if ((pa >= SDRAM_ADDR_START && pa <= SDRAM_ADDR_END) || +#ifdef FLASH_ADDR_START (pa >= FLASH_ADDR_START && pa <= FLASH_ADDR_END)) +#else + 0) +#endif return 1; else return 0; @@ -510,6 +512,7 @@ return (0); } +#ifdef GONE_IN_7 void cpu_throw(struct thread *old, struct thread *new) { @@ -517,3 +520,4 @@ cpu_switch(old, new); panic("cpu_throw() didn't"); } +#endif