From 4344cfb77cdc787c82a7076a50172240f82d6d38 Mon Sep 17 00:00:00 2001 From: Mike Shaver Date: Tue, 16 Sep 1997 20:25:22 +0000 Subject: Added a few #ifdef CONFIG_REMOTE_DEBUG's to keep Mark's cool debugging stuff from breaking kernel compiles for those of us who aren't cool enough to have kgdb set up yet. =) --- drivers/sgi/char/sgiserial.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'drivers/sgi/char') diff --git a/drivers/sgi/char/sgiserial.c b/drivers/sgi/char/sgiserial.c index 6f33ad6d7..025f41e69 100644 --- a/drivers/sgi/char/sgiserial.c +++ b/drivers/sgi/char/sgiserial.c @@ -357,7 +357,9 @@ static _INLINE_ void rs_sched_event(struct sgi_serial *info, mark_bh(SERIAL_BH); } +#ifdef CONFIG_REMOTE_DEBUG extern void set_async_breakpoint(unsigned int epc); +#endif static _INLINE_ void receive_chars(struct sgi_serial *info, struct pt_regs *regs) { @@ -393,11 +395,12 @@ static _INLINE_ void receive_chars(struct sgi_serial *info, struct pt_regs *regs * for remote target debugging and arch/sparc/kernel/sparc-stub.c * to see how all this works. */ +#ifdef CONFIG_REMOTE_DEBUG if((info->kgdb_channel) && (ch =='\003')) { set_async_breakpoint(read_32bit_cp0_register(CP0_EPC)); goto clear_and_exit; } - +#endif if(!tty) goto clear_and_exit; -- cgit v1.2.3