summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-08-16 01:37:49 +0000
committerjake <jake@FreeBSD.org>2002-08-16 01:37:49 +0000
commit3cfd695007ed51c70968675c47442895a0874794 (patch)
treefd8f559f65ae67a552d24e89a398934f3527b33e
parentaaaa8f82790f1904bffa0d0ba4e6a734f93cf585 (diff)
downloadFreeBSD-src-3cfd695007ed51c70968675c47442895a0874794.zip
FreeBSD-src-3cfd695007ed51c70968675c47442895a0874794.tar.gz
Use symbolic constants instead of magic address constants.
-rw-r--r--sys/sparc64/sparc64/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c
index b849cb1..2e497fb 100644
--- a/sys/sparc64/sparc64/pmap.c
+++ b/sys/sparc64/sparc64/pmap.c
@@ -586,7 +586,7 @@ pmap_init(vm_offset_t phys_start, vm_offset_t phys_end)
for (i = 0; i < translations_size; i++) {
addr = translations[i].om_start;
size = translations[i].om_size;
- if (addr < 0xf0000000) /* XXX */
+ if (addr < VM_MIN_PROM_ADDRESS || addr > VM_MAX_PROM_ADDRESS)
continue;
result = vm_map_find(kernel_map, NULL, 0, &addr, size, TRUE,
VM_PROT_ALL, VM_PROT_ALL, 0);
OpenPOWER on IntegriCloud