-
Notifications
You must be signed in to change notification settings - Fork 1.5k
os init_state: add new state OSINIT_OSIDLELOOP #5577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: ligd <liguiding1@xiaomi.com>
|
|
||
| /* Add the new entry to the end of the list of registered callbacks */ | ||
|
|
||
| if (OSINIT_OS_READY()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this condition is removed? I mean why not keeping it and changing to if (!OSINIT_OS_INITIALIZING())?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need.
Because when in system init state, we allow user to get lock.
pkarashchenko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
This is for distinguish we are in init idle or idle loop. Use for assertion for sem_trywait & sem_wait Signed-off-by: ligd <liguiding1@xiaomi.com>
|
Hmm, spresense:elf now failed with this PR. |
|
@masayuki2009 do you think we should revert the change until we clarify your case? |
@pkarashchenko @GUIDINGLI |
|
Can you share the run & test cmd ? |
|
@masayuki2009 |
|
Please see nuttx/boards/risc-v/k210/maix-bit/README-qemu.txt to run maix-bit:kostest. |
|
@masayuki2009 ligd@Opt:~/platform/mainline/nuttx$ qemu-system-riscv64 -nographic -machine sifive_u -bios ./nuttx But, with maix-bit:kostest, I meet this error: |
As I wrote in README-qemu.txt |
|
@masayuki2009 Here is the new PR: |
|
@masayuki2009 |
Summary
os init_state: add new state OSINIT_OSIDLELOOP
This is for distinguish we are in init idle or idle loop.
Use for assertion for sem_trywait & sem_wait
Impact
wait/try wait in IDLE thread
Testing
VELA