David Miller wrote:
The stub is "returned to" directly from the signal handler itself using the "retl" instruction, which jumps to the value of "register %i7 plus 8". We stick the passed in stub address directly into the %i7 register of the signal handler frame, that's why you need to subtract 8 for the system call argument.
Yup, there are a lot of things like this in the Linux ABI (something which makes sense on one architecture, but not across architectures); sigreturn is obviously the worst.
-hpa - To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html