Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm32/arm32 Some of the DIAGNOSTIC checks were too ...



details:   https://anonhg.NetBSD.org/src/rev/1600e6477f54
branches:  trunk
changeset: 467865:1600e6477f54
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Tue Mar 30 10:10:22 1999 +0000

description:
Some of the DIAGNOSTIC checks were too strict and could be tripped by crashme.

diffstat:

 sys/arch/arm32/arm32/pmap.c |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (35 lines):

diff -r df65efe8e6c8 -r 1600e6477f54 sys/arch/arm32/arm32/pmap.c
--- a/sys/arch/arm32/arm32/pmap.c       Tue Mar 30 09:30:43 1999 +0000
+++ b/sys/arch/arm32/arm32/pmap.c       Tue Mar 30 10:10:22 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.57 1999/03/29 10:02:19 mycroft Exp $        */
+/*     $NetBSD: pmap.c,v 1.58 1999/03/30 10:10:22 mycroft Exp $        */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -2648,10 +2648,9 @@
        if (*pte == 0)
                return(0);
 
-#ifdef DIAGNOSTIC
+       /* This can happen if user code tries to access kernel memory. */
        if ((*pte & PT_AP(AP_W)) != 0)
-               panic("pmap_modified_emulation: bogus write fault");
-#endif
+               return (0);
 
        /* Extract the physical address of the page */
        pa = pmap_pte_pa(pte);
@@ -2709,10 +2708,9 @@
        if (*pte == 0)
                return(0);
 
-#ifdef DIAGNOSTIC
+       /* This can happen if user code tries to access kernel memory. */
        if ((*pte & L2_MASK) != L2_INVAL)
-               panic("pmap_handled_emulation: bogus read fault");
-#endif
+               return (0);
 
        /* Extract the physical address of the page */
        pa = pmap_pte_pa(pte);



Home | Main Index | Thread Index | Old Index