signal.h 720 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (C) 2004 PathScale, Inc
  3. * Licensed under the GPL
  4. */
  5. #ifndef __X86_64_SIGNAL_H_
  6. #define __X86_64_SIGNAL_H_
  7. #define ARCH_SIGHDLR_PARAM int sig
  8. #define ARCH_GET_SIGCONTEXT(sc, sig_addr) \
  9. do { \
  10. struct ucontext *__uc; \
  11. asm("movq %%rdx, %0" : "=r" (__uc)); \
  12. sc = (struct sigcontext *) &__uc->uc_mcontext; \
  13. } while(0)
  14. #endif
  15. /*
  16. * Overrides for Emacs so that we follow Linus's tabbing style.
  17. * Emacs will notice this stuff at the end of the file and automatically
  18. * adjust the settings for this buffer only. This must remain at the end
  19. * of the file.
  20. * ---------------------------------------------------------------------------
  21. * Local variables:
  22. * c-file-style: "linux"
  23. * End:
  24. */