diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-07-09 17:16:10 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-07-09 17:16:10 +0000 |
commit | 93180ea26a1c8a991602b7243e1e68e7f510e381 (patch) | |
tree | 45ffe3ae3ca4ed4bbad17b7700c3385b76d09f56 /c/src/lib/libbsp/powerpc/motorola_powerpc/console/console.c | |
parent | Patch from Jiri Gaisler <jgais@ws.estec.esa.nl>: (diff) | |
download | rtems-93180ea26a1c8a991602b7243e1e68e7f510e381.tar.bz2 |
Patch from Eric Valette <valette@crf.canon.fr>:
- The same bug fix that was done on pc386 to prevent interrupt
from occuring (never experienced it but who knows as I have 8259
emulation :()
- Removed every compiler warning (except wrong ones and ones I can't do
anything).
- Removed any libc available code in code linked with mcp750 rtems
executbale. Unfortunately using newlib functions for linking the
bootloader does not work as the compilation options in bootloader
(-mrelocatable -fixed-r13) are not compatible with newlib options.
=> I have put any libc external reference in one single new file (lib.c)
that is linked only with the boot loader. Removing the file from
${OBJ} and using -lc crash the bootloader. Added big warning...
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/powerpc/motorola_powerpc/console/console.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/c/src/lib/libbsp/powerpc/motorola_powerpc/console/console.c b/c/src/lib/libbsp/powerpc/motorola_powerpc/console/console.c index d262c0d7a2..834f960cfc 100644 --- a/c/src/lib/libbsp/powerpc/motorola_powerpc/console/console.c +++ b/c/src/lib/libbsp/powerpc/motorola_powerpc/console/console.c @@ -21,8 +21,11 @@ #include <stdlib.h> #include <assert.h> +#include <stdlib.h> + #undef __assert void __assert (const char *file, int line, const char *msg); +extern int close(int fd); #include <bsp.h> #include <bsp/irq.h> @@ -192,8 +195,6 @@ console_initialize(rtems_device_major_number major, } /* console_initialize */ -static int console_open_count = 0; - static int console_last_close(int major, int minor, void *arg) { BSP_remove_rtems_irq_handler (&console_isr_data); @@ -272,9 +273,6 @@ console_read(rtems_device_major_number major, rtems_device_minor_number minor, void *arg) { - rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *)arg; - char *buffer = rw_args->buffer; - int count, maximum = rw_args->count; return rtems_termios_read (arg); } /* console_read */ @@ -290,9 +288,6 @@ console_write(rtems_device_major_number major, rtems_device_minor_number minor, void * arg) { - rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *)arg; - char *buffer = rw_args->buffer; - int count, maximum = rw_args->count; return rtems_termios_write (arg); |