Date: Sun, 17 Jul 2011 16:21:16 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r224137 - projects/altix/sys/ia64/ia64 Message-ID: <201107171621.p6HGLGGE080673@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107171621.p6HGLGGE080673>