I’m am wondering if it’s possible to create a task from a different binary file. Let say I have my “kernel” running and I’d like to start another task with a file on a sdcard or something compiled by someone else. Like on uClinux when you just execute an elf file and it gets its own process. I’d like to do this so a user don’t have to bundle the kernel to its application.
The way I’m thinking of doing it right now is doing it without an OS and split my RAM and ROM so my kernel would be using the end of the end of the RAM and ROM and the user application the rest of the memory. To load all that I would bootstrap, load my kernel to the end of the memory and init it. Then load the user application and jump to it. Then the kernel would do it’s things using interrupts.
Any body have a better alternative? I’m out of google buzz words to continue my research so please feed me a little.