Computer with floppy
Re: Computer with floppy
Ok, i see. I'll post back when I rewrite my kernel!
- TightCoderEx
- Member
- Posts: 90
- Joined: Sun Jan 13, 2013 6:24 pm
- Location: Grande Prairie AB
Re: Computer with floppy
Speaking of goals, you may want to consider UEFI too. My system is going to be designed for the 3 legacy systems I have, but already of the twenty some odd people I know that have computers, 85% are UEFI, so my legacy boot loader wouldn't even work.Brendan wrote:I'm not sure what your goals are, but in general it's almost always a better idea to use long mode and/or protected mode.
Re: Computer with floppy
Interesting, would a uefi boot loader work on legacy systems. I'm probably the only odd one that prefers older computersTightCoderEx wrote:Speaking of goals, you may want to consider UEFI too. My system is going to be designed for the 3 legacy systems I have, but already of the twenty some odd people I know that have computers, 85% are UEFI, so my legacy boot loader wouldn't even work.Brendan wrote:I'm not sure what your goals are, but in general it's almost always a better idea to use long mode and/or protected mode.
-
- Member
- Posts: 5588
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Computer with floppy
Not without a UEFI emulation layer, and I doubt anyone will want to use one of those.feare56 wrote:Interesting, would a uefi boot loader work on legacy systems.
I do most of my testing on a PC with a 40MHz 386. (I've also done some work on a computer with a 25MHz 68040, but progress is slow due to lack of documentation...)feare56 wrote:I'm probably the only odd one that prefers older computers
Re: Computer with floppy
Hi,
Cheers,
Brendan
The best approach is to build an abstraction layer into your boot code. For example, you can (and I do) have some boot loaders for BIOS and few other boot loaders for UEFI, where the boot loader hides the differences between BIOS and UEFI and ensures that nothing else in the OS has to care what the firmware was.Octocontrabass wrote:Not without a UEFI emulation layer, and I doubt anyone will want to use one of those.feare56 wrote:Interesting, would a uefi boot loader work on legacy systems.
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
- TightCoderEx
- Member
- Posts: 90
- Joined: Sun Jan 13, 2013 6:24 pm
- Location: Grande Prairie AB
Re: Computer with floppy
That pretty much sums it up, as at this level of development you want to be as independent as possible. Linus Torvalds was even a bit more crass about it, characterizing going into protected mode as "turning off the stinking BIOS". There is and has been for sometime now, a level of exclusivity in the desktop environment wherein it's getting pretty difficult to get information about architecture and chipsets from the horses mouth.Brendan wrote: For example, you can (and I do) have some boot loaders for BIOS and few other boot loaders for UEFI, where the boot loader hides the differences between BIOS and UEFI and ensures that nothing else in the OS has to care what the firmware was.
In a previous post I said
Most UEFI have a BIOS emulation mode, so I would assume my loader would work under that condition, although I've never tried it.My system is going to be designed for the 3 legacy systems I have, but already of the twenty some odd people I know that have computers, 85% are UEFI, so my legacy boot loader wouldn't even work.
My impetus in developing for the desktop environment is entirely predicated upon, I've already got a few of these doorstops hanging around, why not use them. I have a reasonable familiarity with X86, so Gizmo 2 has recently caught my eye, mostly due to the information from manufacturer.
Re: Computer with floppy
Alright, since I'm doing a reboot on my project I have decided to make my code more readable. I'm switching from strictly nasm to nasm when needed and c for everywhere else!
Since it has been a while since I have worked with c in osdev. Would the kernel.c be something like:
To just print Hello kernel?
Since it has been a while since I have worked with c in osdev. Would the kernel.c be something like:
Code: Select all
EXTERN kernel;
void main()
{
printf("Hello Kernel!");
}
Re: Computer with floppy
Can we assume that you have already written a working printf?
Re: Computer with floppy
Yes, my main concern is if that section would work. I made it on the fly just to make sure it will work before I have access to a computer