← Back to context

Comment by caspper69

10 days ago

Yeah, I didn't notice the site switch to English link; If I had seen it, I might have also seen the source, lol. Sorry about that.

Terry Davis, the author of TempleOS, was fairly well known online. He had a lot of struggles psychologically, and met an unfortunate end a few years ago. It's an interesting case, but I honestly wouldn't take too much from the project. He was a gifted developer, but he did things for reasons that were decidedly non-technical.

For building up your knowledge (you can't only read the reference manuals, after all), there's a ton of resources online, but a particularly good one is the OSDev wiki: https://wiki.osdev.org/Expanded_Main_Page. I can't speak for it as it exists today because I've been out of the game for too long, but it was maintained by helpful folks. I didn't check to see if the forums are still up, but there used to be a wealth of information in them back in the day too.

As a note, relying on BIOS is ok, but the whole write a bootsector in 512 bytes to switch to 386 protected mode, to then switch to long mode (64-bit) is kind of outdated (the modern computer boot process is handled by the UEFI firmware, and by the time your OS binary is loaded, the CPU is already in long mode with paging enabled and setup with a flat linear mapping of physical memory).

Not to say that the method/approach is worthless (it's all learning), it's just that you spend an awful lot of time doing things in the whole mode-switching dance that are basically tossed in the bin almost immediately, and most of it has nothing at all to do with OS development. UEFI at least allows you to start on the real meat & potatoes without spinning your wheels on code that isn't going to stick around very long.

Thanks for the information :)

I just analyzed and did what I read online and it seemed to work.

To be honest, I don't fully understand how these things work, but I'm here to learn ;)