summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m32r/m32rsim/console/console-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/m32r/m32rsim/console/console-io.c')
-rw-r--r--c/src/lib/libbsp/m32r/m32rsim/console/console-io.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/c/src/lib/libbsp/m32r/m32rsim/console/console-io.c b/c/src/lib/libbsp/m32r/m32rsim/console/console-io.c
index 77d2e804eb..4a479991e7 100644
--- a/c/src/lib/libbsp/m32r/m32rsim/console/console-io.c
+++ b/c/src/lib/libbsp/m32r/m32rsim/console/console-io.c
@@ -1,8 +1,5 @@
/*
- * This file contains the hardware specific portions of the TTY driver
- * for the serial ports on the erc32.
- *
- * COPYRIGHT (c) 1989-2008.
+ * COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -18,28 +15,6 @@
#include <assert.h>
#include <reent.h>
-/* From Newlib 1.16.0 */
-#define SYS_exit 1
-#define SYS_open 2
-#define SYS_close 3
-#define SYS_read 4
-#define SYS_write 5
-#define SYS_lseek 6
-#define SYS_unlink 7
-#define SYS_getpid 8
-#define SYS_kill 9
-#define SYS_fstat 10
-
-int __trap0 (int function, int p1, int p2, int p3, struct _reent *r);
-
-#define TRAP0(f, p1, p2, p3) \
-__trap0 (f, (int) (p1), (int) (p2), (int) (p3), _REENT)
-
-void sys_exit(void)
-{
- TRAP0(SYS_exit, 0, 0, 0);
-}
-
/*
* console_initialize_hardware
*