You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "Giri2801 (via GitHub)" <gi...@apache.org> on 2024/04/03 05:46:58 UTC
Re: [I] Question about RISCV cpu_start [nuttx]
Giri2801 commented on issue #11930:
URL: https://github.com/apache/nuttx/issues/11930#issuecomment-2033580306
Hi,
I had found [this](https://github.com/riscv-software-src/riscv-pk/blob/master/machine/mentry.S#L306-L321) peace of code in riscv-pk. I think this would help us here. The loop should be something like :
```
while(1) {
asm("wfi");
# check if interrupt pending
# is set for IPI, that is,
# software interrupt pending
if (pending) {
break;
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org