summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-07-09 14:00:22 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-07-09 14:00:22 +0000
commit087c04e6ae36c48c8ae27cd0400c8d4d04e5ef8a (patch)
tree5bea2c0bd055f0b480ef0e7393de709be64bd725 /sys/powerpc
parentf338f6d0f8b8c8a2f49f8020d8efe070632dde24 (diff)
downloadFreeBSD-src-087c04e6ae36c48c8ae27cd0400c8d4d04e5ef8a.zip
FreeBSD-src-087c04e6ae36c48c8ae27cd0400c8d4d04e5ef8a.tar.gz
MFppc64:
Check if devices are direct-mapped individually instead of just checking the value of hw_direct_map.
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/powerpc/bus_machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/powerpc/powerpc/bus_machdep.c b/sys/powerpc/powerpc/bus_machdep.c
index fa693e4..dfc6bee 100644
--- a/sys/powerpc/powerpc/bus_machdep.c
+++ b/sys/powerpc/powerpc/bus_machdep.c
@@ -99,11 +99,11 @@ bs_remap_earlyboot(void)
int i;
vm_offset_t pa, spa;
- if (hw_direct_map)
- return;
-
for (i = 0; i < earlyboot_map_idx; i++) {
spa = earlyboot_mappings[i].addr;
+ if (pmap_dev_direct_mapped(spa, earlyboot_mappings[i].size)
+ == 0)
+ continue;
pa = trunc_page(spa);
while (pa < spa + earlyboot_mappings[i].size) {
OpenPOWER on IntegriCloud