ucontext.h 699 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (C) 2010 Tobias Klauser <tklauser@distanz.ch>
  3. * Copyright (C) 2004 Microtronix Datacom Ltd
  4. *
  5. * This file is subject to the terms and conditions of the GNU General Public
  6. * License. See the file "COPYING" in the main directory of this archive
  7. * for more details.
  8. */
  9. #ifndef _ASM_NIOS2_UCONTEXT_H
  10. #define _ASM_NIOS2_UCONTEXT_H
  11. typedef int greg_t;
  12. #define NGREG 32
  13. typedef greg_t gregset_t[NGREG];
  14. struct mcontext {
  15. int version;
  16. gregset_t gregs;
  17. };
  18. #define MCONTEXT_VERSION 2
  19. struct ucontext {
  20. unsigned long uc_flags;
  21. struct ucontext *uc_link;
  22. stack_t uc_stack;
  23. struct mcontext uc_mcontext;
  24. sigset_t uc_sigmask; /* mask last for extensibility */
  25. };
  26. #endif