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:
Joel Sherrill
2007-12-11 23:43:26 +00:00
parent 5c5d438602
commit b21d4f78ed
3 changed files with 20 additions and 15 deletions

View File

@@ -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.

View File

@@ -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;
}

View File

@@ -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;
}