Leaving control in real mode has no benefits either. You still need to set up the CPU mostly from scratch either way.rdos wrote:When you boot an operating system not built on PE or ELF flat binaries of the right bitness, the UEFI loader (and GRUB) is just creating problems with no benefits. First, I both need a 64-bit and a 32-bit EFI, and the 64-bit EFI needs to switch back to 32-bit protected mode in order to be compatible. Then I need to turn-off paging as this is setup in a different way in the OS. Basically, leaving control in 64-bit "flat paged mode" has no benefits at all for me. I'd rather be in real mode instead.
You've forgotten the part where UEFI (and GRUB) can parse filesystems, which makes loading files from the disk much easier.
Update only the parts of the screen that change, and set the LFB to use write combining.rdos wrote:It's still faster than writing 4 bytes per pixel times 8 pixels wide times 19 lines per character. I mean, a typical "hobby" OS will not have a native graphics driver, rather relies on LFB.
A typical console needs to output the right Unicode characters; otherwise, it's broken. What good are box drawing characters when I need to simultaneously display text in English, Arabic, and Chinese?rdos wrote:A typical console needs to output the right ASCII characters otherwise, it is be broken. After all, text-mode apps assume they can draw boxes and similar. You also need to emulate the blinking cursor by regularly updating the LFB.