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/i386at | |
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/i386at')
-rw-r--r-- | i386/i386at/model_dep.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index 7dfeb1c..1dcb8f6 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -80,9 +80,6 @@ static vm_offset_t kern_sym_start, kern_sym_end; vm_offset_t phys_first_addr = 0; vm_offset_t phys_last_addr; -/* Virtual address of physical memory, for the kvtophys/phystokv macros. */ -vm_offset_t phys_mem_va; - /* A copy of the multiboot info structure passed by the boot loader. */ struct multiboot_info boot_info; @@ -377,9 +374,6 @@ void c_boot_entry(vm_offset_t bi) boot_info = *(struct multiboot_info*)phystokv(bi); int cpu_type; - /* XXX we currently assume phys_mem_va is always 0 here - - if it isn't, we must tweak the pointers in the boot_info. */ - /* Before we do _anything_ else, print the hello message. If there are no initialized console devices yet, it will be stored and printed at the first opportunity. */ |