64-Bit RISC-V with Apache NuttX Real-Time Operating System
lupyuen.codeberg.page
lupyuen.codeberg.page
(to the implementer) it's worth noting that hartids are not guaranteed to be contiguous - one is guaranteed to be 0 - the rest will all be different, bot not necessarily 0,1,2,3,4,5....
It's to handle things like this: Suppose I have a board with 4 CPU chips on it, each chip has N CPUs on it (N might be variable, sometimes it's 2, 3, 4 - might depend on yield or on which chips you chose to put on the board (the cheap 2 core version or the expensive 8 core one). Each chip has some pins that indicate what some of the upper bits of the hartid, internally the various CPUs within the chip will set some low bits of their hartids. If I'm a chip designer who wants to make 256 core chips I'll reserve 8 bits for the lower bits and route the external chip pins to bits above that.
My point though don't depend on hartids being contiguous
Put another way: if one were to learn an embeddable RTOS for first hobbyist and then perhaps professional purposes, where is NuttX in the hierarchy of things you would recommend learning?
It looks fascinating and well thought out, but I have no way to assess how much of a backwater, dead end, quirky solution or solid choice it might be.
https://lupyuen.github.io/articles/usb2#pinephone--nuttx--fe...
oh lol OP is the same person my bad
I'd rather use software stacks under GPL 3 instead. It provides some protection.
They're arguably not RISC cores, but the docs here are referring to NuttX's support for avr and z80. And, no, qemu doesn't support those archs AFAIK.
> What would that even be used for? Is that some embedded device things?
Yes, as is NuttX usage in general.
And there is even a full javascript engine, in plain and simple C!!! Good startin g point for a modern web engine written in plain and simple C.
"My process just nutted into a kernel function and later spawned a thread"
And why would Softies think in those directions - fannies are considered black scary animals down there, i heard.
> And why would Softies think in those directions - fannies are considered black scary animals down there, i heard.
I understand that some stereotypes exist for a reason, but in this case the reasons are decades out of date, so you may wish to update your understanding of the world.