mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 20:44:09 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user