kernel loading

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

kernel loading

Post by keyboard_ninja »

I have a problem:
I want to load my kernel from disk into memory.
I have used a number of boot sectors which all
support fat12 and are capable of loading the file
"kernel.bin" into memory, the trouble is, if my
kernel just waits for a key and then reboots, it
works, but anything else, like printing something
to the screen, it just prints out garbage, ascii
characters.
I've used the same kernel on both boot sectors and
get the same result.
Is anyone willing to look at the code and my kernel
to see for themselves ?
It would be a great help.
Thanks
Oh and the boot sectors are by alex friouze and
i think josh macdonald
HELP!!!!
J. Weeks

RE:kernel loading

Post by J. Weeks »

>On 2002-05-25 23:36:20, keyboard_ninja wrote:
>I have a problem:
>I want to load my kernel from disk into memory.
>I have used a number of boot sectors which all
>support fat12 and are capable of loading the file
>"kernel.bin" into memory, the trouble is, if my
>kernel just waits for a key and then reboots, it
>works, but anything else, like printing something
>to the screen, it just prints out garbage, ascii
>characters.
>I've used the same kernel on both boot sectors and
>get the same result.
>Is anyone willing to look at the code and my kernel
>to see for themselves ?
>It would be a great help.
>Thanks
>Oh and the boot sectors are by alex friouze and
>i think josh macdonald
>HELP!!!!

Have you got your code posted on the net somewhere?
If you want, you can send it to me at
[email protected] and I can see what I can do.

No garauntees though, dude... I'm workin' two
jobs right now, and don't have too much free time :)

I'll do my best though!
Jeff
Compuboy

DS

Post by Compuboy »

  It's OK. I can see the problem. You haven't set your data segment register. The foolproof way to do this is:

push cs
pop ds

  If you really want help with this, please go to the OS dev board at http://www.flashdaddee.com. There are plenty of other people over there who will be willing to help you, including me.
Compuboy

P.S.

Post by Compuboy »

Sorry about the   tags, I'm so used to using them to indent my paragraphs when I post that I assumed they would work here, as well!
Post Reply