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 |
---|
12 | ret: |
---|
13 | rts |
---|
14 | nop |
---|
15 | |
---|
16 | .align 2 |
---|
17 | perrno: |
---|
18 | .long _errno |
---|
Note: See
TracBrowser
for help on using the repository browser.