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

4.115
Last change on this file since a531683 was a531683, checked in by Joel Sherrill <joel.sherrill@…>, on 04/18/14 at 15:52:21

shsim: Add printk() support and move all code to console subdirectory

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