forked from Imagelibrary/rtems
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/pheapallocatealigned.c, score/src/pheapgetblocksize.c: Reverse file contents.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* score/src/pheapallocatealigned.c, score/src/pheapgetblocksize.c:
|
||||
Reverse file contents.
|
||||
|
||||
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* sapi/include/rtems/config.h: Correct idle task prototype.
|
||||
|
||||
@@ -16,16 +16,17 @@
|
||||
#include <rtems/system.h>
|
||||
#include <rtems/score/protectedheap.h>
|
||||
|
||||
boolean _Protected_heap_Get_block_size(
|
||||
Heap_Control *the_heap,
|
||||
void *starting_address,
|
||||
size_t *size
|
||||
void *_Protected_heap_Allocate_aligned(
|
||||
Heap_Control *the_heap,
|
||||
size_t size,
|
||||
uint32_t alignment
|
||||
)
|
||||
{
|
||||
boolean status;
|
||||
void *p;
|
||||
|
||||
_RTEMS_Lock_allocator();
|
||||
status = _Heap_Size_of_user_area( the_heap, starting_address, size );
|
||||
p = _Heap_Allocate_aligned( the_heap, size, alignment );
|
||||
_RTEMS_Unlock_allocator();
|
||||
return status;
|
||||
return p;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,17 +16,16 @@
|
||||
#include <rtems/system.h>
|
||||
#include <rtems/score/protectedheap.h>
|
||||
|
||||
void *_Protected_heap_Allocate_aligned(
|
||||
Heap_Control *the_heap,
|
||||
size_t size,
|
||||
uint32_t alignment
|
||||
boolean _Protected_heap_Get_block_size(
|
||||
Heap_Control *the_heap,
|
||||
void *starting_address,
|
||||
size_t *size
|
||||
)
|
||||
{
|
||||
void *p;
|
||||
boolean status;
|
||||
|
||||
_RTEMS_Lock_allocator();
|
||||
p = _Heap_Allocate_aligned( the_heap, size, alignment );
|
||||
status = _Heap_Size_of_user_area( the_heap, starting_address, size );
|
||||
_RTEMS_Unlock_allocator();
|
||||
return p;
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user