diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-10 11:13:18 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-12 09:08:41 +0100 |
commit | d252e20ab5717afea2ac89543ab4e0d379434bb0 (patch) | |
tree | 3842cffab1df421f283ebd5c6c90577e8469efc1 /testsuites/samples | |
parent | fc32904f4a270976961d61385be44c56fcc6fd01 (diff) |
score: Simplify _Thread_Initialize()
Allocate new thread queue heads during objects information extend. This
removes an error case and the last dependency on the workspace in
_Thread_Initialize().
Update #3835.
Diffstat (limited to 'testsuites/samples')
-rw-r--r-- | testsuites/samples/unlimited/test1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuites/samples/unlimited/test1.c b/testsuites/samples/unlimited/test1.c index a529c71be3..3fe2688681 100644 --- a/testsuites/samples/unlimited/test1.c +++ b/testsuites/samples/unlimited/test1.c @@ -51,6 +51,7 @@ void test1() _Objects_Information_table[OBJECTS_CLASSIC_API][OBJECTS_RTEMS_TASKS]; objects_per_block = the_information->objects_per_block; the_information->objects_per_block = 0; + the_information->allocate = _Objects_Allocate_static; while (task_count < MAX_TASKS) { @@ -102,6 +103,7 @@ void test1() destroy_all_tasks("TEST1"); the_information->objects_per_block = objects_per_block; + the_information->allocate = _Thread_Allocate_unlimited; printf( " TEST1 : completed\n" ); } |