diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-12-19 14:49:13 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-12-19 14:49:13 +0000 |
commit | c4e9f685d155309c6ebb1c9f38e4e3724ffc7ce8 (patch) | |
tree | be94fabe04969c913a13ac856d7ace7530e2e274 /c/src/lib/libbsp/powerpc/shared/console/console.c | |
parent | 2002-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-c4e9f685d155309c6ebb1c9f38e4e3724ffc7ce8.tar.bz2 |
2002-12-19 Joel Sherrill <joel@OARcorp.com>
* console/console.c: Removed __assert() which conflicts with newlib.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/shared/console/console.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/shared/console/console.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/console/console.c b/c/src/lib/libbsp/powerpc/shared/console/console.c index a79e0a5984..b6d9b73095 100644 --- a/c/src/lib/libbsp/powerpc/shared/console/console.c +++ b/c/src/lib/libbsp/powerpc/shared/console/console.c @@ -26,8 +26,6 @@ #include <assert.h> #include <stdlib.h> -#undef __assert -void __assert (const char *file, int line, const char *msg); extern int close(int fd); #include <bsp.h> @@ -56,33 +54,6 @@ int BSPBaseBaud = BSP_UART_BAUD_BASE; static int conSetAttr(int minor, const struct termios *); -void __assert (const char *file, int line, const char *msg) -{ - static char exit_msg[] = "EXECUTIVE SHUTDOWN! Any key to reboot..."; - unsigned char ch; - - /* - * Note we cannot call exit or printf from here, - * assert can fail inside ISR too - */ - - /* - * Close console - */ - close(2); - close(1); - close(0); - - printk("\nassert failed: %s: ", file); - printk("%d: ", line); - printk("%s\n\n", msg); - printk(exit_msg); - ch = debug_getc(); - printk("\n\n"); - rtemsReboot(); - -} - typedef struct TtySTblRec_ { char *name; void (*isr)(void); /* STUPID API doesn't pass a parameter :-( */ |