Date: Wed, 14 Mar 2007 16:39:08 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 115867 for review Message-ID: <200703141639.l2EGd84H072096@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=115867 Change 115867 by gonzo@gonzo_jeeves on 2007/03/14 16:38:47 o Report real badvaddr instead of aligned to page. o Remove extra-space. Affected files ... .. //depot/projects/mips2/src/sys/mips/mips/trap.c#16 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/mips/trap.c#16 (text+ko) ==== @@ -169,7 +169,7 @@ pte = pmap_segmap(pmap, va); pte += (va >> PAGE_SHIFT) & (NPTEPG - 1); - if (pte_ro(pte) ) + if (pte_ro(pte)) { ftype = VM_PROT_WRITE; map = &td->td_proc->p_vmspace->vm_map; @@ -227,8 +227,8 @@ break; /* TODO: send signal */ - printf("Userland memory access error %d on va=%08x, pc=%08x\n", - error, va, tf->tf_regs[TF_EPC] ); + printf("Userland memory access error %d on va=%p, pc=%08x\n", + error, badvaddr, tf->tf_regs[TF_EPC]); panic("TODO: signal on memory access errors");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703141639.l2EGd84H072096>