diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-02-20 21:32:07 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-02-20 21:32:07 +0000 |
commit | 4f3e4f33db96df1182c0fb24c987fd9cbed95062 (patch) | |
tree | 791e7ffa208a92511c7f899ec4905b8afe24f9c3 /c/src/lib/libbsp/powerpc/shared/console/polled_io.c | |
parent | 2003-02-20 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-4f3e4f33db96df1182c0fb24c987fd9cbed95062.tar.bz2 |
2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
* console/console.c, console/uart.c, console/uart.h: implement
IOCTLs for the serial (UART) console to install/retrieve a BREAK-IRQ
callback. The callback routine (if installed) is invoked from the
UART ISR when a BREAK interrupt is detected. This can be used
e.g. to enforce a "hotkey" reboot a la vxWorks Ctrl-X (although we
use the serial line break condition) NOTE: The callback runs in
ISR context.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/shared/console/polled_io.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/shared/console/polled_io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/console/polled_io.c b/c/src/lib/libbsp/powerpc/shared/console/polled_io.c index 18f67ac381..edc1f06f0a 100644 --- a/c/src/lib/libbsp/powerpc/shared/console/polled_io.c +++ b/c/src/lib/libbsp/powerpc/shared/console/polled_io.c @@ -888,7 +888,7 @@ static int skip_atoi(const char **s) * bloat has been limited since we basically only need %u, %x, %s and %c. * But we need 64 bit values ! */ -int vsprintf(char *buf, const char *fmt, va_list args); +int k_vsprintf(char *buf, const char *fmt, va_list args); int printk(const char *fmt, ...) { va_list args; @@ -897,7 +897,7 @@ int printk(const char *fmt, ...) { char buf[1024]; va_start(args, fmt); - i = vsprintf(buf, fmt, args); + i = k_vsprintf(buf, fmt, args); va_end(args); puts(buf); return i; @@ -988,7 +988,7 @@ static char * number(char * str, int size, int type, u64 num) return str; } -int vsprintf(char *buf, const char *fmt, va_list args) +int k_vsprintf(char *buf, const char *fmt, va_list args) { int len; u64 num; |