Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh5/sh5 Go to splhigh() before enterring ddb(9).



details:   https://anonhg.NetBSD.org/src/rev/a467704597b1
branches:  trunk
changeset: 535958:a467704597b1
user:      scw <scw%NetBSD.org@localhost>
date:      Mon Sep 02 13:55:03 2002 +0000

description:
Go to splhigh() before enterring ddb(9).

diffstat:

 sys/arch/sh5/sh5/db_interface.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r bace2abd1113 -r a467704597b1 sys/arch/sh5/sh5/db_interface.c
--- a/sys/arch/sh5/sh5/db_interface.c   Mon Sep 02 13:37:35 2002 +0000
+++ b/sys/arch/sh5/sh5/db_interface.c   Mon Sep 02 13:55:03 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.3 2002/09/01 11:40:54 scw Exp $     */
+/*     $NetBSD: db_interface.c,v 1.4 2002/09/02 13:55:03 scw Exp $     */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -201,6 +201,7 @@
 kdb_trap(int type, void *v)
 {
        struct trapframe *frame = v;
+       int s;
 
         switch (type) {
        case T_BREAK:
@@ -215,6 +216,7 @@
                }
        }
 
+       s = splhigh();
        ddb_regs = *frame;
        db_active++;
        cnpollc(1);
@@ -230,6 +232,7 @@
        }
 
        *frame = ddb_regs;
+       splx(s);
 
        return (1);
 }



Home | Main Index | Thread Index | Old Index