Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbppc/walnut Tidy up a little.
details: https://anonhg.NetBSD.org/src/rev/cd50eeabc385
branches: trunk
changeset: 569946:cd50eeabc385
user: simonb <simonb%NetBSD.org@localhost>
date: Tue Sep 14 08:22:33 2004 +0000
description:
Tidy up a little.
diffstat:
sys/arch/evbppc/walnut/machdep.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (41 lines):
diff -r 116f3b5b5996 -r cd50eeabc385 sys/arch/evbppc/walnut/machdep.c
--- a/sys/arch/evbppc/walnut/machdep.c Tue Sep 14 08:08:19 2004 +0000
+++ b/sys/arch/evbppc/walnut/machdep.c Tue Sep 14 08:22:33 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.19 2003/12/30 12:33:16 pk Exp $ */
+/* $NetBSD: machdep.c,v 1.20 2004/09/14 08:22:33 simonb Exp $ */
/*
* Copyright 2001, 2002 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.19 2003/12/30 12:33:16 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.20 2004/09/14 08:22:33 simonb Exp $");
#include "opt_compat_netbsd.h"
#include "opt_ddb.h"
@@ -171,7 +171,7 @@
#ifdef IPKDB
extern int ipkdblow, ipkdbsize;
#endif
- int exc;
+ int exc, dbcr0;
struct cpu_info * const ci = curcpu();
/* Disable all external interrupts */
@@ -270,11 +270,8 @@
consinit();
/* Handle trap instruction as PGM exception */
- {
- int dbcr0;
- asm volatile("mfspr %0,%1":"=r"(dbcr0):"K"(SPR_DBCR0));
- asm volatile("mtspr %0,%1"::"K"(SPR_DBCR0),"r"(dbcr0 & ~DBCR0_TDE));
- }
+ asm volatile("mfspr %0,%1":"=r"(dbcr0):"K"(SPR_DBCR0));
+ asm volatile("mtspr %0,%1"::"K"(SPR_DBCR0),"r"(dbcr0 & ~DBCR0_TDE));
/*
* external interrupt handler install
Home |
Main Index |
Thread Index |
Old Index