Bare minimum OS concept
Turns out this one is simpler than i thought! (thanks to the source code of KaOS)
- Create protected buffer array to store app data/code in (protection requires at least a MPU, even better: MMU)
- Give a pointer to the last address of the buffer to the OS' API calls
- Load precompiled app from storage/flash into buffer with memcpy
- Start Executing from app main()
This won't cover tasks, CPU times, RAM overflows, SDK dev and such, it's just the bare minimum OS side of a app loading mechanism!
Last edited: September 19, 2019, 20:10