mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2009-08-26 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* spstkalloc/init.c: Changed allocator signature. Functions are now static.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2009-08-26 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
|
||||
|
||||
* spstkalloc/init.c: Changed allocator signature. Functions are now
|
||||
static.
|
||||
|
||||
2009-08-25 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
|
||||
|
||||
* sp29/init.c: Fixed return value evaluation.
|
||||
|
||||
@@ -21,14 +21,14 @@ int stackToAlloc = 0;
|
||||
StackMemory_t Stacks[3];
|
||||
void *StackDeallocated = NULL;
|
||||
|
||||
void *StackAllocator(uint32_t size)
|
||||
static void *StackAllocator(size_t size)
|
||||
{
|
||||
if (stackToAlloc < MAXIMUM_STACKS)
|
||||
return &Stacks[stackToAlloc++];
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void StackDeallocator(void *stack)
|
||||
static void StackDeallocator(void *stack)
|
||||
{
|
||||
StackDeallocated = stack;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user