sigcontext.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright (C) 2016 Andes Technology, Inc.
  3. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  4. */
  5. #ifndef _BITS_SIGCONTEXT_H
  6. #define _BITS_SIGCONTEXT_H 1
  7. #ifndef sigcontext_struct
  8. #define sigcontext_struct sigcontext
  9. struct sigcontext{
  10. unsigned long trap_no;
  11. unsigned long error_code;
  12. unsigned long oldmask;
  13. unsigned long nds32_r0;
  14. unsigned long nds32_r1;
  15. unsigned long nds32_r2;
  16. unsigned long nds32_r3;
  17. unsigned long nds32_r4;
  18. unsigned long nds32_r5;
  19. unsigned long nds32_r6;
  20. unsigned long nds32_r7;
  21. unsigned long nds32_r8;
  22. unsigned long nds32_r9;
  23. unsigned long nds32_r10;
  24. unsigned long nds32_r11;
  25. unsigned long nds32_r12;
  26. unsigned long nds32_r13;
  27. unsigned long nds32_r14;
  28. unsigned long nds32_r15;
  29. unsigned long nds32_r16;
  30. unsigned long nds32_r17;
  31. unsigned long nds32_r18;
  32. unsigned long nds32_r19;
  33. unsigned long nds32_r20;
  34. unsigned long nds32_r21;
  35. unsigned long nds32_r22;
  36. unsigned long nds32_r23;
  37. unsigned long nds32_r24;
  38. unsigned long nds32_r25;
  39. unsigned long nds32_fp; //r28
  40. unsigned long nds32_gp; //r29
  41. unsigned long nds32_lr; //r30
  42. unsigned long nds32_sp; //r31
  43. unsigned long nds32_d1lo;
  44. unsigned long nds32_d1hi;
  45. unsigned long nds32_d0lo;
  46. unsigned long nds32_d0hi;
  47. unsigned long nds32_ipsw;
  48. unsigned long nds32_ipc;
  49. unsigned long fault_address;
  50. };
  51. #define sc_pc nds32_ipc /* For sysdeps/generic/profil-counter.h. */
  52. #endif /* sigcontext_struct */
  53. #endif /* _BITS_SIGCONTEXT_H */