Date: Tue, 21 Jan 2003 19:02:03 -0800 From: Arun Sharma <arun.sharma@intel.com> To: freebsd-ia64@freebsd.org Subject: cat /proc/pid/map == panic Message-ID: <200301220302.h0M323r01126@unix-os.sc.intel.com>
next in thread | raw e-mail | index | archive | help
cat /proc/pid/map results in a page not present fault. The attached patch fixed it for me. --- src/sys/ia64/ia64/pmap.c- Tue Jan 21 17:46:59 2003 +++ src/sys/ia64/ia64/pmap.c Tue Jan 21 18:26:48 2003 @@ -1164,13 +1164,16 @@ register pmap_t pmap; vm_offset_t va; { - pmap_t oldpmap; - vm_offset_t pa; + struct ia64_lpte *pte; - oldpmap = pmap_install(pmap); - pa = ia64_tpa(va); - pmap_install(oldpmap); - return pa; + if (!pmap) + return 0; + + pte = pmap_find_vhpt(va); + if (!pte) + return 0; + + return pmap_pte_pa(pte); } /*************************************************** -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301220302.h0M323r01126>