-
Notifications
You must be signed in to change notification settings - Fork 74
Description
We currently have the issue of the instruction scratchpad (ISPM) not working on non-main cores.
It works on the main core by the bootloader reading the downloaded ELF and putting anything that is in the .text.spm section in the ISPM.
However, this does not work for other cores since there is no way for the main core to load stuff into other cores' ISPMs, and there is no way for the cores themselves to do it, since they are called using pthreads or coresthread_create.
My idea is to update corethread/pthreads such that they call the bootloader on the other cores instead of the given function. The bootloader will be updated such that if it is not called from the main core, it loads the ISPM then runs the required function. This of course requires an update to the bootloader.
This is not totally fleshed out, but I think it would be a good way to use existing functionality in the bootloader to give us access to the ISPMs on non-main cores.