forked from Imagelibrary/rtems
2011-11-04 Sebastian Huber <sebastian.huber@embedded-brains.de>
* support/src/test_support.c: Avoid magic numbers.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2011-11-04 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||||
|
|
||||||
|
* support/src/test_support.c: Avoid magic numbers.
|
||||||
|
|
||||||
2011-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2011-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* support/include/tmacros.h:
|
* support/include/tmacros.h:
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ void Allocate_majority_of_workspace( int smallest )
|
|||||||
|
|
||||||
do {
|
do {
|
||||||
result = rtems_workspace_allocate(
|
result = rtems_workspace_allocate(
|
||||||
info.Free.largest-16,
|
info.Free.largest - HEAP_BLOCK_HEADER_SIZE,
|
||||||
&temp
|
&temp
|
||||||
);
|
);
|
||||||
if ((!result) || (!temp))
|
if ((!result) || (!temp))
|
||||||
@@ -72,7 +72,7 @@ void Allocate_majority_of_heap( int smallest )
|
|||||||
puts("Allocate_majority_of_heap: ");
|
puts("Allocate_majority_of_heap: ");
|
||||||
size = malloc_free_space();
|
size = malloc_free_space();
|
||||||
do {
|
do {
|
||||||
temp = malloc( size-16 );
|
temp = malloc( size - HEAP_BLOCK_HEADER_SIZE );
|
||||||
if (!temp)
|
if (!temp)
|
||||||
perror("Unable to allocate from workspace");
|
perror("Unable to allocate from workspace");
|
||||||
size = malloc_free_space();
|
size = malloc_free_space();
|
||||||
|
|||||||
Reference in New Issue
Block a user