source: rtems/c/src/lib/libbsp/sh/shsim/console/console-support.S @ 86ec6ed

4.104.114.84.95
Last change on this file since 86ec6ed was 86ec6ed, checked in by Joel Sherrill <joel.sherrill@…>, on 11/27/00 at 16:00:50

2000-11-27 Joel Sherrill <joel@…>

  • 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.
  • Property mode set to 100644
File size: 329 bytes
Line 
1/*
2 *  newlib-1.8.2/newlib/libc/sys/sh/trap.S
3 *
4 *  $Id$
5 */
6        .text
7        .global ___trap34
8___trap34:
9        trapa   #34
10        tst     r1,r1   ! r1 is errno
11        bt      ret
12        mov.l   perrno,r2
13        mov.l   r1,@r2
14ret:
15        rts
16        nop
17         
18        .align  2
19perrno:
20        .long   _errno
21
Note: See TracBrowser for help on using the repository browser.