A Look At Bootstrapping 30
markmcb writes "OmniNerd posted an interesting article on the often-overlooked process of bootstrapping. The author does a nice job of showing how to take an x86 system from BIOS to OS once it's powered on. A complete set of commented code is provided and explained in the article."
Tomorrow: How To Use A Mouse (Score:1, Offtopic)
x86 is a fossil (Score:3, Insightful)
Re:x86 is a fossil (Score:5, Insightful)
We're "stuck" on x86 mostly by choice - backward compatibility is a great thing. You can buy a dual core high end machine and install anything from say, dos 3.3 to XP (and every version between) and most of it will run just fine (and other OS'es). That's very important to a lot of people. Decent hardware for the platform is quite cheap really, readily avaialble virtually everywhere, and you can get parts that fits your needs no matter what (slow or fast, be it a CPU, video card or whatever). You can assemble what you exactly need. There's tons of reasons to stay on x86, I can't see myself switching to something else anytime soon.
Re:x86 is a fossil (Score:3, Interesting)
Re:x86 is a fossil (Score:3, Insightful)
And yet despite the fact that there are lots of existing bootloaders out there (lilo, grub, chos, etc) and writing a new one is fairly simple nearly every week there will be a new post asking for help in writing a bootloader on alt.os.development [google.com].
I can only assume it is because people first start writing an operating system by coding the bootloader. Still given the number of people who have problems with that it is no wonder that few actually write something functional.
Re:x86 is a fossil (Score:3, Interesting)
Re:x86 is a fossil (Score:2)
Propably because the 64-bit AMD processors need to support 32-bit mode too, and support it well. The 64-bit and 32-bit mode likely share as many components as possible, to keep the total amount of components as small as possible, and this is of course easier if t
Re:x86 is a fossil (Score:2)
AFAIK, the first thing that happens to x86 instructions is that they are decoded to micro-ops, which are much like RISC instructions. The rest of the CPU than operates on these micro-ops. To me, it seems these micro-ops could just as well come from a different decoder unit, so AMD could as well have designed a proper RISC architecture for the 64-bit mode.
``Besides, the x86 architechture has proven itself capa
Re:x86 is a fossil (Score:2)
Fossil is a bad analogy. Try "modern mammal". (Score:4, Interesting)
Takes me back to my youth... (Score:5, Funny)
You can't boot this floppy. Pull the floppy out of the drive and your head out of your ass and try again
Re:Takes me back to my youth... (Score:1)
Meh, why not just look at LinuxBIOS? (Score:2, Informative)
I guess TFA is a good technical resource, but it's also a good reminder as to why big wads of assembly suck.
Re:Meh, why not just look at LinuxBIOS? (Score:1, Insightful)
Re:Meh, why not just look at LinuxBIOS? (Score:1)
I agree with the sentiments here, that bootstrap code, or any code within reason, is easier to maintain and generally to understand if written in a high level language (such as C). But I come from a mainframe background where bootstrap (or IPL) code has to use machine-specific instructions. Perhaps one day we'll get to the stage of 'standardising' on hardware level controls so that all functionality could be controlled without the need to 'resort' to assembler.
Until then I'm keeping my assembler reference
Woohoo! (Score:4, Funny)
I agree with the other guy (Score:4, Insightful)
Ummmm..... let's write a new OS! (Score:3, Interesting)
Re:Ummmm..... let's write a new OS! (Score:1)
I said the same thing not but eight months ago. Then, about two months ago, I installed a Linux distro on my home desktop. I've installed plenty of them before, but they never stuck. Even the one I'm using right now (Gentoo) [gentoo.org] has been on this system at least half-a-dozen times. However, this time it stuck.
"And why's that?", you may ask. Well, over the past few years I've been migrating to Open Source Software! Replacing Microsoft O
Re:Ummmm..... let's write a new OS! (Score:1)
Re:Ummmm..... let's write a new OS! (Score:1)
I hear you on that
"...I meant replacing the Win98 in QEMU with Reactos."
Ahh, misunderstanding. Still, got to drop a line about Linux every now and then, eh?
Thanks for the feedback,
QBRADQ
Who cares? (Score:1)