Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc setpte4m: remove ineffective debug asse...



details:   https://anonhg.NetBSD.org/src/rev/8e55bf08408e
branches:  trunk
changeset: 565487:8e55bf08408e
user:      pk <pk%NetBSD.org@localhost>
date:      Sat Apr 10 18:40:04 2004 +0000

description:
setpte4m: remove ineffective debug assertions.

diffstat:

 sys/arch/sparc/sparc/pmap.c |  19 ++++---------------
 1 files changed, 4 insertions(+), 15 deletions(-)

diffs (47 lines):

diff -r c392daef7295 -r 8e55bf08408e sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c       Sat Apr 10 17:53:05 2004 +0000
+++ b/sys/arch/sparc/sparc/pmap.c       Sat Apr 10 18:40:04 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.278 2004/04/04 18:34:35 pk Exp $ */
+/*     $NetBSD: pmap.c,v 1.279 2004/04/10 18:40:04 pk Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -56,7 +56,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.278 2004/04/04 18:34:35 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.279 2004/04/10 18:40:04 pk Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -867,26 +867,15 @@
        struct regmap *rp;
        struct segmap *sp;
 
+#ifdef DEBUG
        if (getcontext4m() != 0)
                panic("setpte4m: user context");
+#endif
 
        pm = pmap_kernel();
-
-       /* Note: inline version of setptesw4m() */
-#ifdef DEBUG
-       if (pm->pm_regmap == NULL)
-               panic("setpte4m: no regmap entry");
-#endif
        rp = &pm->pm_regmap[VA_VREG(va)];
        sp = &rp->rg_segmap[VA_VSEG(va)];
 
-#ifdef DEBUG
-       if (rp->rg_segmap == NULL)
-               panic("setpte4m: no segmap for va %lx (rp=%p)", va, rp);
-
-       if (sp->sg_pte == NULL)
-               panic("setpte4m: no pte for va %lx (rp=%p,sp=%p)", va, rp, sp);
-#endif
        tlb_flush_page(va, 0, CPUSET_ALL);
        setpgt4m(sp->sg_pte + VA_SUN4M_VPG(va), pte);
 }



Home | Main Index | Thread Index | Old Index