excSimhppaLib.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* excSimhppaLib.h - simhppa exception library header */
  2. /* Copyright 1993-1994 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01d,08jun94,ms   saved more state during exception/breakpoint
  7. 01c,10jan94,gae  added external declaration for excExcepHook
  8. 01b,26jan94,gae  rearranged EXC_INFO -- same as "simsparc".
  9. 01a,11aug93,gae  from rrr.
  10. */
  11. #ifndef __INCexcSimhppaLibh
  12. #define __INCexcSimhppaLibh
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #ifndef _ASMLANGUAGE
  17. /* variable declarations */
  18. extern FUNCPTR  excExcepHook;   /* add'l rtn to call when exceptions occur */
  19. #define ESF EXC_INFO
  20. typedef struct
  21.     {
  22.     int valid;
  23.     int pc;
  24.     int npc;
  25.     int ps;
  26.     int sig;
  27.     int code;
  28.     int addr;
  29.     int ptcb;
  30.     int gr[32];
  31.     int fr[32];
  32.     int sr[8];
  33.     int cr11;
  34.     int state;
  35.     int addr1;
  36.     int addr2;
  37.     int pad[4];
  38.     } EXC_INFO;
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42. #endif /* _ASMLANGUAGE */
  43. #endif /* __INCexcSimhppaLibh */