From 4e556493d6da2c00c218cc270b79c08cd4e61eb1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 1 Jul 1999 21:52:01 +0000 Subject: Modified to ignore console interrupts. Otherwise console interrupts were Ada exceptions. Fixed by Joel with advice from Jiri. --- c/src/lib/libbsp/sparc/erc32/gnatsupp/gnatsupp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'c') diff --git a/c/src/lib/libbsp/sparc/erc32/gnatsupp/gnatsupp.c b/c/src/lib/libbsp/sparc/erc32/gnatsupp/gnatsupp.c index 79f1f037db..e0ef0cb795 100644 --- a/c/src/lib/libbsp/sparc/erc32/gnatsupp/gnatsupp.c +++ b/c/src/lib/libbsp/sparc/erc32/gnatsupp/gnatsupp.c @@ -92,11 +92,12 @@ void __gnat_install_handler() * trap 0 which we will use as a shutdown. Also avoid trap 0x70 - 0x7f * which cannot happen and where some of the space is used to pass * paramaters to the program. Trap 0x1d is used by the clock tick - * and 0x83 by the remote debugging stub. + * and 0x83 by the remote debugging stub. Traps 0x14, 0x15, and 0x17 + * are used by the console device driver. */ if (( trap >= 0x11 ) && ( trap <= 0x1f )) { - if ( trap != 0x1d ) + if ( trap != 0x1d && trap != 0x14 && trap != 0x15 && trap != 0x17 ) rtems_interrupt_catch( __gnat_interrupt_handler, trap, &previous_isr ); } else if (( trap != 5 && trap != 6 && trap != 0x83 ) && -- cgit v1.2.3