diff options
Diffstat (limited to 'sys/arch/mvme88k/dev/clock.c')
-rw-r--r-- | sys/arch/mvme88k/dev/clock.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/dev/clock.c b/sys/arch/mvme88k/dev/clock.c index 300a55353f4..c6893fd14f0 100644 --- a/sys/arch/mvme88k/dev/clock.c +++ b/sys/arch/mvme88k/dev/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.10 2001/03/09 05:44:38 smurph Exp $ */ +/* $OpenBSD: clock.c,v 1.11 2001/10/28 00:57:20 miod Exp $ */ /* * Copyright (c) 1999 Steve Murphree, Jr. * Copyright (c) 1995 Theo de Raadt @@ -89,6 +89,7 @@ #include <sys/gmon.h> #endif +#include <machine/asm.h> #include <machine/asm_macro.h> /* for stack_pointer() */ #include <machine/board.h> /* for register defines */ #include <machine/psl.h> @@ -289,7 +290,9 @@ m188_clockintr(eframe) volatile int *dti_stop = (volatile int *)DART_STOPC; volatile int *dti_start = (volatile int *)DART_STARTC; volatile int *ist = (volatile int *)MVME188_IST; +#ifdef DEBUG register unsigned long sp; +#endif /* increment intr counter */ intrcnt[M88K_CLK_IRQ]++; @@ -298,6 +301,7 @@ m188_clockintr(eframe) tmp = *dti_stop; +#ifdef DEBUG /* check kernel stack for overflow */ sp = stack_pointer(); if (sp < UADDR + NBPG && sp > UADDR) { @@ -305,8 +309,9 @@ m188_clockintr(eframe) printf("DTI not clearing!\n"); } printf("kernel stack @ 0x%8x\n", sp); - panic("stack overflow eminant!"); + panic("stack overflow imminent!"); } +#endif #if 0 /* clear the counter/timer output OP3 while we program the DART */ |