setjmp.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * @COPYRIGHT@
  3. *
  4. * x-kernel v3.2
  5. *
  6. * Copyright (c) 1993,1991,1990 Arizona Board of Regents
  7. *
  8. * @COPYRIGHT@
  9. *
  10. * $RCSfile: setjmp.h,v $
  11. *
  12. * HISTORY
  13. * $Log: setjmp.h,v $
  14. * Revision 1.1.1.1 2004/04/25 20:38:20 vorlon
  15. * Initial import of upstream source
  16. *
  17. * Revision 1.1.1.1 2001/10/08 23:03:52 wgwoods
  18. * initial import of CVS source from alphalinux.org, plus a couple bugfixes
  19. *
  20. * Revision 1.1.1.1 2000/05/03 03:58:22 dhd
  21. * Initial import (from 0.7 release)
  22. *
  23. * Revision 1.1 1995/03/06 16:41:07 davidm
  24. * Initial revision
  25. *
  26. * Revision 1.1 1994/10/07 00:47:11 davidm
  27. * Initial revision
  28. *
  29. */
  30. #ifndef _setjmp_h
  31. #define _setjmp_h
  32. #define JB_GP 0x00
  33. #define JB_SP 0x08
  34. #define JB_RA 0x10
  35. #define JB_S0 0x18
  36. #define JB_S1 0x20
  37. #define JB_S2 0x28
  38. #define JB_S3 0x30
  39. #define JB_S4 0x38
  40. #define JB_S5 0x40
  41. #define JB_S6 0x48
  42. #define JB_MAGIC 0x50
  43. # ifndef SCOUT_FPU_SUPPORT
  44. # define JBLEN (0x58 / 8)
  45. # else
  46. # define JB_F2 0x58
  47. # define JB_F3 0x60
  48. # define JB_F4 0x68
  49. # define JB_F5 0x70
  50. # define JB_F6 0x78
  51. # define JB_F7 0x80
  52. # define JB_F8 0x88
  53. # define JB_F9 0x90
  54. # define JBLEN (0x98 / 8)
  55. # endif /* SCOUT_FPU_SUPPORT */
  56. #define JBMAGIC 0x2ceb1ade
  57. #ifndef LANGUAGE_ASSEMBLY
  58. typedef long jmp_buf[JBLEN];
  59. extern void _longjmp (jmp_buf, int);
  60. extern int _setjmp (jmp_buf);
  61. #endif /* LANGUAGE_ASSEMBLY */
  62. #endif /* _setjmp_h */