svn commit: r212777 - in head/sys/mips: include mips
Neel Natu
neel at FreeBSD.org
Fri Sep 17 02:20:12 UTC 2010
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;
More information about the svn-src-all
mailing list