From 41e7421452706fbf2d6750a80220ca392c6cef8c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 28 May 2007 15:03:13 +0000 Subject: 2007-05-28 Joel Sherrill PR 1244/bsps * console/console.c: Remove definition of __assert. --- c/src/lib/libbsp/i386/pc386/ChangeLog | 5 ++++ c/src/lib/libbsp/i386/pc386/console/console.c | 40 --------------------------- 2 files changed, 5 insertions(+), 40 deletions(-) diff --git a/c/src/lib/libbsp/i386/pc386/ChangeLog b/c/src/lib/libbsp/i386/pc386/ChangeLog index 0931032992..2f15899c42 100644 --- a/c/src/lib/libbsp/i386/pc386/ChangeLog +++ b/c/src/lib/libbsp/i386/pc386/ChangeLog @@ -1,3 +1,8 @@ +2007-05-28 Joel Sherrill + + PR 1244/bsps + * console/console.c: Remove definition of __assert. + 2007-01-29 Ralf Corsépius * console/fb_vga.c: Eliminate __u16, __u32. diff --git a/c/src/lib/libbsp/i386/pc386/console/console.c b/c/src/lib/libbsp/i386/pc386/console/console.c index 887fcb9334..5581c6583c 100644 --- a/c/src/lib/libbsp/i386/pc386/console/console.c +++ b/c/src/lib/libbsp/i386/pc386/console/console.c @@ -34,8 +34,6 @@ #include #include #include -#undef __assert -void __assert (const char *file, int line, const char *msg); #include #include @@ -141,44 +139,6 @@ int kbd_poll_read( int minor ) return -1; } -/* -static void* termios_ttyp_console = NULL; -void enq_key( char key ) -{ - if( termios_ttyp_console ) - { - rtems_termios_enqueue_raw_characters(termios_ttyp_console, &key,1 ); - } -} -*/ - -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 = BSP_poll_char(); - printk("\n\n"); - rtemsReboot(); - -} - /*-------------------------------------------------------------------------+ | Console device driver INITIALIZE entry point. +--------------------------------------------------------------------------+ -- cgit v1.2.3