Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/aarch64/aarch64 delete debug printf and KASSERT.
details: https://anonhg.NetBSD.org/src/rev/86c998e83095
branches: trunk
changeset: 433498:86c998e83095
user: ryo <ryo%NetBSD.org@localhost>
date: Mon Sep 17 00:15:55 2018 +0000
description:
delete debug printf and KASSERT.
diffstat:
sys/arch/aarch64/aarch64/pmap.c | 22 ++++------------------
1 files changed, 4 insertions(+), 18 deletions(-)
diffs (44 lines):
diff -r ead17fe4248b -r 86c998e83095 sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c Sun Sep 16 23:20:18 2018 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c Mon Sep 17 00:15:55 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.23 2018/09/10 16:43:24 maxv Exp $ */
+/* $NetBSD: pmap.c,v 1.24 2018/09/17 00:15:55 ryo Exp $ */
/*
* Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.23 2018/09/10 16:43:24 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.24 2018/09/17 00:15:55 ryo Exp $");
#include "opt_arm_debug.h"
#include "opt_ddb.h"
@@ -1824,23 +1824,9 @@
goto done;
}
- if ((pte & LX_BLKPAG_AF) && ((pte & LX_BLKPAG_AP) == LX_BLKPAG_AP_RW)) {
-#if 1 /* XXX: DEBUG */
- if (!user) {
- /*
- * pte is readable and writable, but occured fault?
- * unprivileged load/store, or else ?
- */
- printf("%s: fault: va=%016lx pte=%08" PRIx64
- ": pte is rw."
- " unprivileged load/store ? (onfault=%p)\n",
- __func__, va, pte, curlwp->l_md.md_onfault);
- }
-#endif
+ /* pte is readable and writable, but occured fault? probably copy(9) */
+ if ((pte & LX_BLKPAG_AF) && ((pte & LX_BLKPAG_AP) == LX_BLKPAG_AP_RW))
goto done;
- }
- KASSERT(((pte & LX_BLKPAG_AF) == 0) ||
- ((pte & LX_BLKPAG_AP) == LX_BLKPAG_AP_RO));
pmap_pv_lock(md);
if ((pte & LX_BLKPAG_AF) == 0) {
Home |
Main Index |
Thread Index |
Old Index