diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-15 14:20:14 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-16 08:58:49 -0500 |
commit | 0626dba48a5190abe2ec90db5febde46c951b3af (patch) | |
tree | 7785bb6280bbbf77a183429a65a3d04149d1eb99 /c/src/lib/libbsp/sh/shsim/console | |
parent | arm/rtl22xx/startup/bspstart.c: Ensure bsp_start_default() is static (diff) | |
download | rtems-0626dba48a5190abe2ec90db5febde46c951b3af.tar.bz2 |
SH libcpu and libbsp: Fix warnings
Diffstat (limited to 'c/src/lib/libbsp/sh/shsim/console')
-rw-r--r-- | c/src/lib/libbsp/sh/shsim/console/console-debugio.c | 5 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/shsim/console/console-io.c | 16 |
2 files changed, 1 insertions, 20 deletions
diff --git a/c/src/lib/libbsp/sh/shsim/console/console-debugio.c b/c/src/lib/libbsp/sh/shsim/console/console-debugio.c index 38b6c8f698..0a81dbe45b 100644 --- a/c/src/lib/libbsp/sh/shsim/console/console-debugio.c +++ b/c/src/lib/libbsp/sh/shsim/console/console-debugio.c @@ -1,9 +1,6 @@ /** * @file * @brief Stub printk() support - * - * This file contains a stub for the required printk() support. - * It is NOT functional!!! */ /* @@ -27,7 +24,7 @@ void console_outbyte_polled( char ch ); -void BSP_output_char_f(char c) +static void BSP_output_char_f(char c) { console_outbyte_polled( 0, c ); } diff --git a/c/src/lib/libbsp/sh/shsim/console/console-io.c b/c/src/lib/libbsp/sh/shsim/console/console-io.c index 7f5794e784..71b089fdf7 100644 --- a/c/src/lib/libbsp/sh/shsim/console/console-io.c +++ b/c/src/lib/libbsp/sh/shsim/console/console-io.c @@ -20,20 +20,13 @@ #include <bsp/syscall.h> -int errno; - -extern int __trap34(int, int, void*, int ); - /* * console_initialize_hardware * * This routine initializes the console hardware. - * */ - void console_initialize_hardware(void) { - return; } /* @@ -41,14 +34,12 @@ void console_initialize_hardware(void) * * This routine transmits a character using polling. */ - void console_outbyte_polled( int port, char ch ) { __trap34 (SYS_write, 1, &ch, 1); - return; } /* @@ -56,7 +47,6 @@ void console_outbyte_polled( * * This routine polls for a character. */ - int console_inbyte_nonblocking( int port ) @@ -65,9 +55,3 @@ int console_inbyte_nonblocking( return __trap34 (SYS_read, 0, &c, 1); } - -/* XXX wrong place for this */ -int _sys_exit (int n) -{ - return __trap34 (SYS_exit, n, 0, 0); -} |