summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sh/shsim/console/console-support.S
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-11-27 16:00:50 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-11-27 16:00:50 +0000
commit86ec6edbe9851ff7e2dd0bd5412d30461cfb2f59 (patch)
tree3adc2c2fc1830441d1bcf3288754265e1e9fbe85 /c/src/lib/libbsp/sh/shsim/console/console-support.S
parent2000-11-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-86ec6edbe9851ff7e2dd0bd5412d30461cfb2f59.tar.bz2
2000-11-27 Joel Sherrill <joel@OARcorp.com>
* The shsim is for the SH simulator in gdb. It should be able to be used with multiple SH CPU models. * .cvsignore, ChangeLog, Makefile.am, README, bsp_specs, configure.in, clock/.cvsignore, clock/Makefile.am, clock/clockdrv.c, console/.cvsignore, console/Makefile.am, console/console-io.c, console/console-support.S, include/.cvsignore, include/Makefile.am, include/bsp.h, start/.cvsignore, start/Makefile.am, start/regs.S, start/start.S, startup/.cvsignore, startup/Makefile.am, startup/bspstart.c, startup/linkcmds, wrapup/.cvsignore, wrapup/Makefile.am: New files.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/sh/shsim/console/console-support.S21
1 files changed, 21 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sh/shsim/console/console-support.S b/c/src/lib/libbsp/sh/shsim/console/console-support.S
new file mode 100644
index 0000000000..b4b9d9ae76
--- /dev/null
+++ b/c/src/lib/libbsp/sh/shsim/console/console-support.S
@@ -0,0 +1,21 @@
+/*
+ * newlib-1.8.2/newlib/libc/sys/sh/trap.S
+ *
+ * $Id$
+ */
+ .text
+ .global ___trap34
+___trap34:
+ trapa #34
+ tst r1,r1 ! r1 is errno
+ bt ret
+ mov.l perrno,r2
+ mov.l r1,@r2
+ret:
+ rts
+ nop
+
+ .align 2
+perrno:
+ .long _errno
+