↳
In-reply-to
»
My little toy operating system from last year runs in 16-bit Real Mode (like DOS). Since Iβve recently figured out how to switch to 64-bit Long Mode right after BIOS boot, I now have a little program that performs this switch on my toy OS. It will load and run any x86-64 program, assuming itβs freestanding, a flat binary, and small enough (< 128 KiB code, only uses the first 2 MiB of memory).
β€ Read More
@prologic@twtxt.net That might be a challenge, at least in 16-bit Real Mode: The OS follows the model of COM files on DOS, i.e. the size of the binary cannot exceed 64 KiB and heap+stack of the running program will have to fit into that same 64 KiB. π (The memory layout is very rigid, each process gets such a 64 KiB slice.)
And in 64-bit Long Mode, there is no βkernelβ yet. The thing in the video is literally just a small bare-metal program.
But some day, maybe. π