On Sun, 21 Nov 2004, Linus Torvalds wrote:
void handler(int signo) { extern char smc; smc++; }
asm volatile("\nsmc:\n\t" ".byte 0xb7\n\t" ".long function" :"=d" (fnp)); fnp();
You know you're sick, don't you? Making traps inc's to get you in the correct opcode to move function in edx->fnp, is indeed fruit of a sick mind :=)
- Davide