Date: Thu, 3 Jan 2008 21:16:25 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 132426 for review Message-ID: <200801032116.m03LGPNn033241@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801032116.m03LGPNn033241>