svn commit: r224137 - projects/altix/sys/ia64/ia64
Marcel Moolenaar
marcel at FreeBSD.org
Sun Jul 17 16:21:16 UTC 2011
Author: marcel
Date: Sun Jul 17 16:21:16 2011
New Revision: 224137
URL: http://svn.freebsd.org/changeset/base/224137
Log:
On head I made pmap_mapdev() strict. This is not good for the Altix, as
we have I/O memory translation on top of address spaces. None of that is
covered by memory descriptors. So, restore the old behavior of returning
a region 6 VA if there's no MD describing the PA.
Modified:
projects/altix/sys/ia64/ia64/pmap.c
Modified: projects/altix/sys/ia64/ia64/pmap.c
==============================================================================
--- projects/altix/sys/ia64/ia64/pmap.c Sun Jul 17 15:41:32 2011 (r224136)
+++ projects/altix/sys/ia64/ia64/pmap.c Sun Jul 17 16:21:16 2011 (r224137)
@@ -2251,7 +2251,7 @@ pmap_mapdev(vm_paddr_t pa, vm_size_t sz)
if (md == NULL) {
printf("%s: [%#lx..%#lx] not covered by memory descriptor\n",
__func__, pa, pa + sz - 1);
- return (NULL);
+ return ((void *)IA64_PHYS_TO_RR6(pa));
}
if (md->md_type == EFI_MD_TYPE_FREE) {
More information about the svn-src-projects
mailing list