From 76e552d39b1c0e882ff570d7c49e189b1479bfb1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 17 Sep 2007 14:09:32 +0000 Subject: 2007-09-17 Joel Sherrill * console/console.c: Eliminate DEBUG_puts. --- c/src/lib/libbsp/powerpc/ep1a/ChangeLog | 4 ++ c/src/lib/libbsp/powerpc/ep1a/console/console.c | 77 --------------------- c/src/lib/libbsp/powerpc/gen83xx/ChangeLog | 4 ++ c/src/lib/libbsp/powerpc/gen83xx/console/console.c | 79 ---------------------- 4 files changed, 8 insertions(+), 156 deletions(-) (limited to 'c') diff --git a/c/src/lib/libbsp/powerpc/ep1a/ChangeLog b/c/src/lib/libbsp/powerpc/ep1a/ChangeLog index 0a9d9c6edd..89fdb9ccea 100644 --- a/c/src/lib/libbsp/powerpc/ep1a/ChangeLog +++ b/c/src/lib/libbsp/powerpc/ep1a/ChangeLog @@ -1,3 +1,7 @@ +2007-09-17 Joel Sherrill + + * console/console.c: Eliminate DEBUG_puts. + 2007-09-12 Joel Sherrill PR 1257/bsps diff --git a/c/src/lib/libbsp/powerpc/ep1a/console/console.c b/c/src/lib/libbsp/powerpc/ep1a/console/console.c index 7828a791fa..5b3d2b3654 100644 --- a/c/src/lib/libbsp/powerpc/ep1a/console/console.c +++ b/c/src/lib/libbsp/powerpc/ep1a/console/console.c @@ -242,83 +242,6 @@ rtems_device_driver console_initialize( return RTEMS_SUCCESSFUL; } -/* PAGE - * - * DEBUG_puts - * - * This should be safe in the event of an error. It attempts to ensure - * that no TX empty interrupts occur while it is doing polled IO. Then - * it restores the state of that external interrupt. - * - * Input parameters: - * string - pointer to debug output string - * - * Output parameters: NONE - * - * Return values: NONE - */ - -void DEBUG_puts( - char *string -) -{ - char *s; - uint32_t Irql; - - rtems_interrupt_disable(Irql); - - for ( s = string ; *s ; s++ ) - { - Console_Port_Tbl[Console_Port_Minor].pDeviceFns-> - deviceWritePolled(Console_Port_Minor, *s); - } - - rtems_interrupt_enable(Irql); -} - -/* PAGE - * - * DEBUG_puth - * - * This should be safe in the event of an error. It attempts to ensure - * that no TX empty interrupts occur while it is doing polled IO. Then - * it restores the state of that external interrupt. - * - * Input parameters: - * ulHexNum - value to display - * - * Output parameters: NONE - * - * Return values: NONE - */ -void -DEBUG_puth( - uint32_t ulHexNum - ) -{ - unsigned long i,d; - uint32_t Irql; - - rtems_interrupt_disable(Irql); - - Console_Port_Tbl[Console_Port_Minor].pDeviceFns-> - deviceWritePolled(Console_Port_Minor, '0'); - Console_Port_Tbl[Console_Port_Minor].pDeviceFns-> - deviceWritePolled(Console_Port_Minor, 'x'); - - for(i=32;i;) - { - i-=4; - d=(ulHexNum>>i)&0xf; - Console_Port_Tbl[Console_Port_Minor].pDeviceFns-> - deviceWritePolled(Console_Port_Minor, - (d<=9) ? d+'0' : d+'a'-0xa); - } - - rtems_interrupt_enable(Irql); -} - - /* const char arg to be compatible with BSP_output_char decl. */ void debug_putc_onlcr(const char c) diff --git a/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog b/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog index fd48f6f955..7125e6b645 100644 --- a/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog +++ b/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog @@ -1,3 +1,7 @@ +2007-09-17 Joel Sherrill + + * console/console.c: Eliminate DEBUG_puts. + 2007-09-12 Joel Sherrill PR 1257/bsps diff --git a/c/src/lib/libbsp/powerpc/gen83xx/console/console.c b/c/src/lib/libbsp/powerpc/gen83xx/console/console.c index 8fadc46d3e..12b96574ef 100644 --- a/c/src/lib/libbsp/powerpc/gen83xx/console/console.c +++ b/c/src/lib/libbsp/powerpc/gen83xx/console/console.c @@ -243,85 +243,6 @@ rtems_device_driver console_initialize( return RTEMS_SUCCESSFUL; } -/* PAGE - * - * DEBUG_puts - * - * This should be safe in the event of an error. It attempts to ensure - * that no TX empty interrupts occur while it is doing polled IO. Then - * it restores the state of that external interrupt. - * - * Input parameters: - * string - pointer to debug output string - * - * Output parameters: NONE - * - * Return values: NONE - */ - -void DEBUG_puts( - char *string -) -{ - char *s; - uint32_t Irql; - - rtems_interrupt_disable(Irql); - - for ( s = string ; *s ; s++ ) - { - Console_Port_Tbl[Console_Port_Minor].pDeviceFns-> - deviceWritePolled(Console_Port_Minor, *s); - } - - rtems_interrupt_enable(Irql); -} - -/* PAGE - * - * DEBUG_puth - * - * This should be safe in the event of an error. It attempts to ensure - * that no TX empty interrupts occur while it is doing polled IO. Then - * it restores the state of that external interrupt. - * - * Input parameters: - * ulHexNum - value to display - * - * Output parameters: NONE - * - * Return values: NONE - */ -void -DEBUG_puth( - uint32_t ulHexNum - ) -{ - unsigned long i,d; - uint32_t Irql; - - rtems_interrupt_disable(Irql); - - Console_Port_Tbl[Console_Port_Minor].pDeviceFns-> - deviceWritePolled(Console_Port_Minor, '0'); - Console_Port_Tbl[Console_Port_Minor].pDeviceFns-> - deviceWritePolled(Console_Port_Minor, 'x'); - - for(i=32;i;) - { - i-=4; - d=(ulHexNum>>i)&0xf; - Console_Port_Tbl[Console_Port_Minor].pDeviceFns-> - deviceWritePolled(Console_Port_Minor, - (d<=9) ? d+'0' : d+'a'-0xa); - } - - rtems_interrupt_enable(Irql); -} - - -/* const char arg to be compatible with BSP_output_char decl. */ -void debug_putc_onlcr(const char c) { uint32_t Irql; -- cgit v1.2.3