signal.c 332 B

1234567891011121314151617
  1. /*
  2. * Copyright (C) 2006 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  3. * Licensed under the GPL
  4. */
  5. #include <signal.h>
  6. extern void handle_signal(int sig, struct sigcontext *sc);
  7. void hard_handler(int sig)
  8. {
  9. struct ucontext *uc;
  10. asm("movq %%rdx, %0" : "=r" (uc));
  11. handle_signal(sig, (struct sigcontext *) &uc->uc_mcontext);
  12. }