Computer with floppy

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
feare56
Member
Member
Posts: 97
Joined: Sun Dec 23, 2012 5:48 pm

Re: Computer with floppy

Post by feare56 »

Ok, i see. I'll post back when I rewrite my kernel!
User avatar
TightCoderEx
Member
Member
Posts: 90
Joined: Sun Jan 13, 2013 6:24 pm
Location: Grande Prairie AB

Re: Computer with floppy

Post by TightCoderEx »

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.
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.
feare56
Member
Member
Posts: 97
Joined: Sun Dec 23, 2012 5:48 pm

Re: Computer with floppy

Post by feare56 »

TightCoderEx wrote:
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.
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.
Interesting, would a uefi boot loader work on legacy systems. I'm probably the only odd one that prefers older computers
Octocontrabass
Member
Member
Posts: 5588
Joined: Mon Mar 25, 2013 7:01 pm

Re: Computer with floppy

Post by Octocontrabass »

feare56 wrote:Interesting, would a uefi boot loader work on legacy systems.
Not without a UEFI emulation layer, and I doubt anyone will want to use one of those.
feare56 wrote:I'm probably the only odd one that prefers older computers
I do most of my testing on a PC with a 40MHz 386. :lol: (I've also done some work on a computer with a 25MHz 68040, but progress is slow due to lack of documentation...)
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Computer with floppy

Post by Brendan »

Hi,
Octocontrabass wrote:
feare56 wrote:Interesting, would a uefi boot loader work on legacy systems.
Not without a UEFI emulation layer, and I doubt anyone will want to use one of those.
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.


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.
User avatar
TightCoderEx
Member
Member
Posts: 90
Joined: Sun Jan 13, 2013 6:24 pm
Location: Grande Prairie AB

Re: Computer with floppy

Post by TightCoderEx »

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.
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.

In a previous post I said
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.
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 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.
feare56
Member
Member
Posts: 97
Joined: Sun Dec 23, 2012 5:48 pm

Re: Computer with floppy

Post by feare56 »

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:

Code: Select all

EXTERN kernel;

void main()
{
    printf("Hello Kernel!");
}
To just print Hello kernel?
User avatar
iansjack
Member
Member
Posts: 4706
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Computer with floppy

Post by iansjack »

Can we assume that you have already written a working printf?
feare56
Member
Member
Posts: 97
Joined: Sun Dec 23, 2012 5:48 pm

Re: Computer with floppy

Post by feare56 »

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
Post Reply