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:
parent
db1a9b7dfb
commit
2f78c3e5a0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212777
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user