summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2010-09-17 02:20:12 +0000
committerneel <neel@FreeBSD.org>2010-09-17 02:20:12 +0000
commitf2848f933e7bedfa20b56e0a413cf93b75480123 (patch)
tree640ade8e18b2cd3ce90af7eb36751ad67f26086c /sys/mips
parent27a137ed0976c0a2f3163d69a489cbd64aac7e94 (diff)
downloadFreeBSD-src-f2848f933e7bedfa20b56e0a413cf93b75480123.zip
FreeBSD-src-f2848f933e7bedfa20b56e0a413cf93b75480123.tar.gz
Get rid of the unnecessary redirection of 'is_cacheable_mem()' to
'is_physical_memory()' through a macro. Implement 'is_cacheable_mem()' directly instead.
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/include/md_var.h4
-rw-r--r--sys/mips/mips/machdep.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/mips/include/md_var.h b/sys/mips/include/md_var.h
index ba3da96..fee2e44 100644
--- a/sys/mips/include/md_var.h
+++ b/sys/mips/include/md_var.h
@@ -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
diff --git a/sys/mips/mips/machdep.c b/sys/mips/mips/machdep.c
index 120fde7..435b9b4 100644
--- a/sys/mips/mips/machdep.c
+++ b/sys/mips/mips/machdep.c
@@ -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;
OpenPOWER on IntegriCloud