signal.h 684 B

123456789101112131415161718192021222324252627
  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_GET_SIGCONTEXT(sc, sig_addr) \
  8. do { \
  9. struct ucontext *__uc; \
  10. asm("movq %%rdx, %0" : "=r" (__uc)); \
  11. sc = (struct sigcontext *) &__uc->uc_mcontext; \
  12. } while(0)
  13. #endif
  14. /*
  15. * Overrides for Emacs so that we follow Linus's tabbing style.
  16. * Emacs will notice this stuff at the end of the file and automatically
  17. * adjust the settings for this buffer only. This must remain at the end
  18. * of the file.
  19. * ---------------------------------------------------------------------------
  20. * Local variables:
  21. * c-file-style: "linux"
  22. * End:
  23. */