1 2 3 4 5 6 7 8 9 10 11 12 13
#include <bits/asm.h> #include <bits/syscall.h> .global __restore .type __restore,@function __restore: li r0, __NR_sigreturn sc .global __restore_rt .type __restore_rt,@function __restore_rt: li r0, __NR_rt_sigreturn sc