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

VxWorks

开发平台:

C/C++

  1. /* taskArchLib.h - header file for taskArchLib.c */
  2. /* Copyright 1984-1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01k,11oct01,cjj  removed Am29K support
  7. 01j,10dec93,hdn  added support for i86.
  8. 01j,02dec93,pme  added am29K family stack support.
  9. 01i,22sep92,rrr  added support for c++
  10. 01h,03jul92,jcf  cleaned up.
  11. 01g,26may92,rrr  the tree shuffle
  12. 01f,19mar92,yao  moved ANSI prototype for taskStackAllot() to taskLib.h.
  13. 01e,12mar92,yao  removed ANSI prototype for taskRegsShow().  added ANSI
  14.  prototype for taskRegsInit(), taskArgs{S,G}et(),
  15.  taskRtnValueSet().
  16. 01d,10jan92,jwt  added ANSI prototype for taskStackAllot().
  17. 01c,04oct91,rrr  passed through the ansification filter
  18.   -fixed #else and #endif
  19.   -changed VOID to void
  20.   -changed copyright notice
  21. 01b,05oct90,dnw deleted private functions.
  22. 01a,05oct90,shl created.
  23. */
  24. #ifndef __INCtaskArchLibh
  25. #define __INCtaskArchLibh
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. #include "taskLib.h"
  30. /* function declarations */
  31. #if defined(__STDC__) || defined(__cplusplus)
  32. #if (CPU_FAMILY==I80X86)
  33. extern STATUS  taskSRSet (int tid, UINT sr);
  34. #else
  35. extern STATUS  taskSRSet (int tid, UINT16 sr);
  36. #endif /* (CPU_FAMILY==I80X86) */
  37. extern void  taskRegsInit (WIND_TCB *pTcb, char *pStackBase);
  38. extern void  taskArgsSet (WIND_TCB *pTcb, char *pStackBase,int pArgs[]);
  39. extern void  taskArgsGet (WIND_TCB *pTcb, char *pStackBase,int pArgs[]);
  40. extern void  taskRtnValueSet (WIND_TCB *pTcb, int returnValue);
  41. #else
  42. extern STATUS  taskSRSet ();
  43. extern void  taskRegsInit ();
  44. extern void  taskArgsSet ();
  45. extern void  taskArgsGet ();
  46. extern void  taskRtnValueSet ();
  47. #endif /* __STDC__ */
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif /* __INCtaskArchLibh */