spsysinit01: Account for use of .noinit section

The objects control blocks cannot be used to check the pre-initialization state
since they are allocated in a .noinit section.

Update #4678.
This commit is contained in:
Sebastian Huber
2022-07-18 15:52:20 +02:00
parent 12a03bea4f
commit 0e5f4c5d32
+2 -2
View File
@@ -341,13 +341,13 @@ LAST(RTEMS_SYSINIT_CLASSIC_MESSAGE_QUEUE)
FIRST(RTEMS_SYSINIT_CLASSIC_SEMAPHORE)
{
assert(_Semaphore_Information.initial_objects[0].id == 0);
assert(info_not_init(&_Semaphore_Information));
next_step(CLASSIC_SEMAPHORE_PRE);
}
LAST(RTEMS_SYSINIT_CLASSIC_SEMAPHORE)
{
assert(_Semaphore_Information.initial_objects[0].id != 0);
assert(info_is_init(&_Semaphore_Information, 1));
next_step(CLASSIC_SEMAPHORE_POST);
}