diff options
author | Mike Shaver <shaver@ingenia.com> | 1997-09-16 20:25:22 +0000 |
---|---|---|
committer | Mike Shaver <shaver@ingenia.com> | 1997-09-16 20:25:22 +0000 |
commit | 4344cfb77cdc787c82a7076a50172240f82d6d38 (patch) | |
tree | efdd983b942907bdd3ca790ba00baf13776c1bd2 /drivers/sgi/char/sgiserial.c | |
parent | 4e589e524e0c4c23fd8c6217696bd9983dc8a721 (diff) |
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. =)
Diffstat (limited to 'drivers/sgi/char/sgiserial.c')
-rw-r--r-- | drivers/sgi/char/sgiserial.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |