8 bits of bun

Bare minimum OS concept

Turns out this one is simpler than i thought! (thanks to the source code of KaOS)

  1. Create protected buffer array to store app data/code in (protection requires at least a MPU, even better: MMU)
  2. Give a pointer to the last address of the buffer to the OS' API calls
  3. Load precompiled app from storage/flash into buffer with memcpy
  4. 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

Powered by CMSimple | Template: Desyn 20xx (v0.2) (by 8bit-bun)