/* * Copyright (C) 2006 Jeff Dike (jdike@addtoit.com) * Licensed under the GPL */#include<signal.h>externvoid(*handlers[])(intsig,structsigcontext*sc);voidhard_handler(intsig){structucontext*uc;asm("movq %%rdx, %0":"=r"(uc));(*handlers[sig])(sig,(structsigcontext*)&uc->uc_mcontext);}