URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 207 |
Rev 345 |
#if __SH5__
|
#if __SH5__
|
.mode SHmedia
|
.mode SHmedia
|
#if __SH5__ == 32 && __SHMEDIA__
|
#if __SH5__ == 32 && __SHMEDIA__
|
.section .text..SHmedia32, "ax"
|
.section .text..SHmedia32, "ax"
|
#else
|
#else
|
.text
|
.text
|
#endif
|
#endif
|
.global ___trap34
|
.global ___trap34
|
___trap34:
|
___trap34:
|
movi 34, r0
|
movi 34, r0
|
trapa r0
|
trapa r0
|
pt/l ret, tr1
|
pt/l ret, tr1
|
ptabs/l r18, tr0
|
ptabs/l r18, tr0
|
beqi r1, 0, tr1
|
beqi r1, 0, tr1
|
#if __SH5__ == 64
|
#if __SH5__ == 64
|
movi ((_errno >> 48) & 65535), r0
|
movi ((_errno >> 48) & 65535), r0
|
shori ((_errno >> 32) & 65535), r0
|
shori ((_errno >> 32) & 65535), r0
|
shori ((_errno >> 16) & 65535), r0
|
shori ((_errno >> 16) & 65535), r0
|
#else
|
#else
|
movi ((_errno >> 16) & 65535), r0
|
movi ((_errno >> 16) & 65535), r0
|
#endif
|
#endif
|
shori (_errno & 65535), r0
|
shori (_errno & 65535), r0
|
stx.l r0, r63, r1
|
stx.l r0, r63, r1
|
ret:
|
ret:
|
blink tr0, r63
|
blink tr0, r63
|
|
|
#else
|
#else
|
.text
|
.text
|
.global ___trap34
|
.global ___trap34
|
___trap34:
|
___trap34:
|
trapa #34
|
trapa #34
|
tst r1,r1 ! r1 is errno
|
tst r1,r1 ! r1 is errno
|
bt ret
|
bt ret
|
mov.l perrno,r2
|
mov.l perrno,r2
|
mov.l r1,@r2
|
mov.l r1,@r2
|
ret:
|
ret:
|
rts
|
rts
|
nop
|
nop
|
|
|
.align 2
|
.align 2
|
perrno:
|
perrno:
|
.long _errno
|
.long _errno
|
#endif /* ! __SH5__ */
|
#endif /* ! __SH5__ */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.