1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-02 12:20:51 +00:00

Get rid of the unnecessary redirection of 'is_cacheable_mem()' to

'is_physical_memory()' through a macro.

Implement 'is_cacheable_mem()' directly instead.
This commit is contained in:
Neel Natu 2010-09-17 02:20:12 +00:00
parent db1a9b7dfb
commit 2f78c3e5a0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212777
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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;