Browse Source

Used standard constructor and destructor declarations that apply to all cpu include C6x.

master
Hanhui 7 years ago
parent
commit
d5816270ed
  1. 3
      target/src/poolLib.c
  2. 6
      target/src/vxWorks.c

3
target/src/poolLib.c

@ -62,7 +62,8 @@ LOCAL BOOL poolBlockIsFree(POOL_ID poolId, POOL_BLOCK * pBlk);
/*
* poolLibInit - initialize the poolLib.
*/
LW_CONSTRUCTOR_BEGIN void poolLibInit (void)
LW_CONSTRUCTOR_BEGIN
LW_LIB_HOOK_STATIC void poolLibInit (void)
{
if (!poolListMutex) {
poolListMutex = semMCreate(POOL_SEM_CREATE_ATTRIB);

6
target/src/vxWorks.c

@ -48,7 +48,8 @@ extern void vxWorksLogDeinit(void);
/*
* VxWorks compatibility init.
*/
LW_CONSTRUCTOR_BEGIN void __vxWorksInit (void)
LW_CONSTRUCTOR_BEGIN
LW_LIB_HOOK_STATIC void __vxWorksInit (void)
{
allocAlignSize = sizeof(size_t);
stackAlignSize = sizeof(LW_STACK);
@ -70,7 +71,8 @@ LW_CONSTRUCTOR_END(__vxWorksInit)
/*
* VxWorks compatibility deinit.
*/
LW_DESTRUCTOR_BEGIN void __vxWorksDeinit (void)
LW_DESTRUCTOR_BEGIN
LW_LIB_HOOK_STATIC void __vxWorksDeinit (void)
{
vxWorksLogDeinit();

Loading…
Cancel
Save