diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-11-22 20:40:10 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-11-22 20:40:10 +0100 |
commit | 99db2ac14d503cefeaff7b3555e3692dea901fd4 (patch) | |
tree | 7dc97708362fa9eb2670c0aa3fcbe107a4efc274 /i386/i386/vm_param.h | |
parent | 20d73500124972fe9cc896f790413bed7538f369 (diff) |
Replace phys_mem_va with VM_MIN_KERNEL_ADDRESS
* i386/i386/vm_param.h (phystokv): Use VM_MIN_KERNEL_ADDRESS
instead of phys_mem_va.
(_kvtophys): New macro.
* i386/i386at/model_dep.c (phys_mem_va): Remove variable.
Diffstat (limited to 'i386/i386/vm_param.h')
-rw-r--r-- | i386/i386/vm_param.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/i386/i386/vm_param.h b/i386/i386/vm_param.h index 1b79dda..57a2166 100644 --- a/i386/i386/vm_param.h +++ b/i386/i386/vm_param.h @@ -50,10 +50,13 @@ /* * Physical memory is direct-mapped to virtual memory - * starting at virtual address phys_mem_va. + * starting at virtual address VM_MIN_KERNEL_ADDRESS. */ -extern vm_offset_t phys_mem_va; -#define phystokv(a) ((vm_offset_t)(a) + phys_mem_va) +#define phystokv(a) ((vm_offset_t)(a) + VM_MIN_KERNEL_ADDRESS) +/* + * This can not be used with virtual mappings, but can be used during bootstrap + */ +#define _kvtophys(a) ((vm_offset_t)(a) - VM_MIN_KERNEL_ADDRESS) /* * Kernel virtual memory is actually at 0xc0000000 in linear addresses. |