Page 1 of 1

Pagefault on real machine, can someone test?

Posted: Fri Jun 06, 2008 4:14 pm
by piranha
I recently tested my OS on my real machine, but it had a pagefault.
I'm requesting if some people can test it on another computer, will it work?

The same ISO worked in Qemu, so I'm asking, are there any issues like this that anyone knows?

Here is a link to the iso image (which I used to test on my computer): http://seakernel.googlecode.com/files/grub.iso

Edit: I think I found the problem...I need to fix my module loader...

Thanks, JL

Posted: Sat Jun 07, 2008 9:50 am
by iammisc
For future reference, most problems that occur only on real machines usually have something to do with zeroed memory and timing. In QEMU or bochs or any other emulator, the memory is initialized to 0 so uninitialized variables are all set to 0. However, this isn't the case in a real computer where at startup, the RAM is usually pulled to a random state. Timing-wise, you need to remember that the qemu and bochs ata driver don't need to have delays. They'll work without delays. However, a real ata controller implemented in hardware will need to have those delays.

Posted: Sat Jun 07, 2008 10:23 am
by piranha
The hard drive driver (that causes the problem) has delay...
I'll see if the new iso, without that module, works.

-JL

Posted: Mon Jun 09, 2008 8:11 am
by Combuster
Microsoft Virtual PC has many of the same quirks as a real PC. Try running your code on that and tell us if that works.