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 |
/ According to the iBCS2 book, signal() has 0x30 in %eax, and the address
|
/ According to the iBCS2 book, signal() has 0x30 in %eax, and the address
|
/ of a function in %edx. This function is where a signal handler will
|
/ of a function in %edx. This function is where a signal handler will
|
/ return to; it should just adjust the stack pointer, and call $f,$0.
|
/ return to; it should just adjust the stack pointer, and call $f,$0.
|
/ Strange but true.
|
/ Strange but true.
|
.globl signal
|
.globl signal
|
|
|
sigret:
|
sigret:
|
addl $4, %esp
|
addl $4, %esp
|
lcall $0xf, $0
|
lcall $0xf, $0
|
signal:
|
signal:
|
movl $0x30, %eax
|
movl $0x30, %eax
|
movl sigret, %edx
|
movl sigret, %edx
|
lcall $7,$0
|
lcall $7,$0
|
jb _cerror
|
jb _cerror
|
/ The iBCS2 book also clears out %eax here, which seems to be broken.
|
/ The iBCS2 book also clears out %eax here, which seems to be broken.
|
ret
|
ret
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.