Date: Fri, 17 Sep 2010 02:20:12 +0000 (UTC) From: Neel Natu <neel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r212777 - in head/sys/mips: include mips Message-ID: <201009170220.o8H2KCC7015307@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: neel Date: Fri Sep 17 02:20:12 2010 New Revision: 212777 URL: http://svn.freebsd.org/changeset/base/212777 Log: Get rid of the unnecessary redirection of 'is_cacheable_mem()' to 'is_physical_memory()' through a macro. Implement 'is_cacheable_mem()' directly instead. Modified: head/sys/mips/include/md_var.h head/sys/mips/mips/machdep.c Modified: head/sys/mips/include/md_var.h ============================================================================== --- head/sys/mips/include/md_var.h Fri Sep 17 02:14:21 2010 (r212776) +++ head/sys/mips/include/md_var.h Fri Sep 17 02:20:12 2010 (r212777) @@ -52,11 +52,9 @@ void cpu_swapin(struct proc *); uintptr_t MipsEmulateBranch(struct trapframe *, uintptr_t, int, uintptr_t); void MipsSwitchFPState(struct thread *, struct trapframe *); u_long kvtop(void *addr); -int is_physical_memory(vm_offset_t addr); +int is_cacheable_mem(vm_offset_t addr); void mips_generic_reset(void); -#define is_cacheable_mem(pa) is_physical_memory((pa)) - #define MIPS_DEBUG 0 #if MIPS_DEBUG Modified: head/sys/mips/mips/machdep.c ============================================================================== --- head/sys/mips/mips/machdep.c Fri Sep 17 02:14:21 2010 (r212776) +++ head/sys/mips/mips/machdep.c Fri Sep 17 02:20:12 2010 (r212777) @@ -497,7 +497,7 @@ cpu_idle_wakeup(int cpu) } int -is_physical_memory(vm_offset_t addr) +is_cacheable_mem(vm_offset_t addr) { int i;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009170220.o8H2KCC7015307>