summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-04-06 15:52:03 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-04-06 15:52:03 +0000
commit35bb69b1cd7d5a54f5727195cc7b5f06a7cb2344 (patch)
treed7435f5a462d5e266b113b29ee4ad4ed9e21f4af /c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
parentbfbc4d3ccd7b3c61a4f0c261363feb5321d7dba3 (diff)
downloadrtems-35bb69b1cd7d5a54f5727195cc7b5f06a7cb2344.tar.bz2
2001-03-30 Eric Valette <valette@crf.canon.fr>
* clock/.cvsignore, clock/Makefile.am, clock/p_clock.c, include/8xx_immap.h, include/commproc.h, include/mbx.h, irq/.cvsignore, irq/Makefile.am, irq/irq.c, irq/irq.h, irq/irq_asm.S, irq/irq_init.c, vectors/.cvsignore, vectors/Makefile.am, vectors/vectors.S, vectors/vectors.h, vectors/vectors_init.c: New files. * Makefile.am, configure.in, console/console.c, include/Makefile.am, network/network.c, startup/Makefile.am, startup/bspstart.c, startup/imbx8xx.c, startup/linkcmds, startup/mmutlbtab.c, startup/start.S, wrapup/Makefile.am: The modifications to this BSP reflect the conversion of the mpc8xx CPU to the "new exception processing model."
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mbx8xx/console/console.c')
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/console/console.c27
1 files changed, 20 insertions, 7 deletions
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
index a601572703..2a10d3c652 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
@@ -80,6 +80,7 @@
#include <bspIo.h>
#include <rtems/libio.h>
#include <termios.h>
+#include <bsp/mbx.h>
static int _EPPCBug_pollRead( int minor );
static int _EPPCBug_pollWrite( int minor, const char *buf, int len );
@@ -87,8 +88,9 @@ static void _BSP_output_char( char c );
static rtems_status_code do_poll_read( rtems_device_major_number major, rtems_device_minor_number minor, void * arg);
static rtems_status_code do_poll_write( rtems_device_major_number major, rtems_device_minor_number minor, void * arg);
+static void _BSP_null_char( char c ) {return;}
-BSP_output_char_function_type BSP_output_char = _BSP_output_char;
+BSP_output_char_function_type BSP_output_char = _BSP_null_char;
/*
@@ -502,6 +504,20 @@ static void _BSP_output_char( char c )
#endif
}
+bd_t *eppcbugInfo= (bd_t *)0xdeadbeef;
+bd_t fakeEppcBugInfo = {
+ 0x42444944, /* Should be 0x42444944 "BDID" */
+ sizeof(bd_t), /* Size of this structure */
+ 0, /* revision of this structure */
+ 0, /* EPPCbug date, i.e. 0x11061997 */
+ 0, /* Memory start address */
+ 0x1000000, /* Memory (end) size in bytes */
+ 0x28, /* Internal Freq, in Hz */
+ 0, /* Bus Freq, in Hz */
+ 0, /* Boot device controller */
+ 0 /* Boot device logical dev */
+};
+
/*
***************
@@ -566,7 +582,7 @@ rtems_device_driver console_initialize(
m8xx_uart_scc_initialize(SCC4_MINOR); /* /dev/tty4 */
#endif /* mpc860 */
-
+ BSP_output_char = _BSP_output_char;
#else /* NVRAM_CONFIGURE != 1 */
console_minor = CONSOLE_MINOR;
@@ -609,13 +625,10 @@ rtems_device_driver console_initialize(
#endif /* mpc860 */
-#endif /* NVRAM_CONFIGURE != 1 */
+ BSP_output_char = _BSP_output_char;
+#endif /* NVRAM_CONFIGURE != 1 */
- /*
- * Set up interrupts
- */
- m8xx_uart_interrupts_initialize();
status = rtems_io_register_name ("/dev/tty0", major, SMC1_MINOR);
if (status != RTEMS_SUCCESSFUL)