source:
rtems/c/src/lib/libbsp/sh/shsim/trap34/console-support.S
@
3239698
Last change on this file since 3239698 was 3239698, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/15/04 at 13:26:21 | |
---|---|
|
|
File size: 328 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 |
14 | ret: |
15 | rts |
16 | nop |
17 | |
18 | .align 2 |
19 | perrno: |
20 | .long _errno |
Note: See TracBrowser
for help on using the repository browser.