96 karma · joined Feb 16, 2024 (2y ago) · 10 submissions
https://github.com/1fishe2fishe/EXODUS
https://github.com/nrootconauto/Aiwnios
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
After all, it's EXODUS is an "exodus" of the TempleOS kernel from ring 0 to 3, so I rolled with it.
comment 2y ago · link · parent
[1]: https://old.reddit.com/r/TempleOS_Official/comments/2pzdy6/c...
[2]: https://web.archive.org/web/20170305000952/http://www.temple...
comment 2y ago · link · parent
[1]: https://github.com/1fishe2fishe/EXODUS/blob/90f70386b8ac6bd0...
[2]: https://github.com/1fishe2fishe/EXODUS/blob/90f70386b8ac6bd0...
[3]: https://github.com/torvalds/linux/blob/8f2c057754b25075aa3da...
comment 2y ago · link · parent
So I can just map some pages in the host process and the host process' address space becomes the HolyC kernel's entire address space, which is ironic since Terry was always adamant about how he disliked modern isolated per-process address spaces and that turned out to be a key to porting his OS to Ring 3.
I did need some code for "code pages" though - since all function calls in TempleOS use the 32 bit relative call instruction, all compiled HolyC code go in the lower 32 bit address space. Some Linux distros like to map the ELF binary at that address range too, so I have a routine to read /proc/self/maps and avoid mmapping those areas (I was surprised mmap can overlap without any signs).
10.
Show HN: Running TempleOS in user space without virtualization(github.com ↗)
228 points · by 1fishe2fishe · 2y ago · 36 comments