diff options
author | jchandra <jchandra@FreeBSD.org> | 2011-01-13 06:48:43 +0000 |
---|---|---|
committer | jchandra <jchandra@FreeBSD.org> | 2011-01-13 06:48:43 +0000 |
commit | 0d331f0eeae3677c659c9cefcc094ab671ae8c02 (patch) | |
tree | 5c015613e98dfb4b97598d567255307dd7e039af /sys/mips/include/md_var.h | |
parent | 4dbaee02b6fe937200e57b02895b141529907812 (diff) | |
download | FreeBSD-src-0d331f0eeae3677c659c9cefcc094ab671ae8c02.zip FreeBSD-src-0d331f0eeae3677c659c9cefcc094ab671ae8c02.tar.gz |
Cleanup physical address and PTE types on MIPS.
1. Use vm_paddr_t for physical addresses.
There are a few places in the MIPS platform code where vm_offset_t is
used for physical addresses, change these to use vm_paddr_t:
- phys_avail[], physmem_desc[] arrays
- pmap_mapdev(), page_is_managed(), is_cacheable_mem() pmap_map() args
- local variables of various pmap functions
2. Change init_pte_prot() return from int to pt_entry_t, as this can be
64 bit when using 64 bit TLB entries.
3. Update printing of pt_entry_t and of vm_paddr_t to use 'j' format with
uintmax_t. This will be useful later if we plan to use 64bit phsical addr
on 32 bit n32 compilation.
Reviewed by: imp
Diffstat (limited to 'sys/mips/include/md_var.h')
-rw-r--r-- | sys/mips/include/md_var.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/include/md_var.h b/sys/mips/include/md_var.h index 3e46ad3..c2a6155 100644 --- a/sys/mips/include/md_var.h +++ b/sys/mips/include/md_var.h @@ -54,7 +54,7 @@ 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_cacheable_mem(vm_offset_t addr); +int is_cacheable_mem(vm_paddr_t addr); void mips_generic_reset(void); #define MIPS_DEBUG 0 |