Pagefault on real machine, can someone test?

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
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Pagefault on real machine, can someone test?

Post 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
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
iammisc
Member
Member
Posts: 269
Joined: Thu Nov 09, 2006 6:23 pm

Post 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.
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post by piranha »

The hard drive driver (that causes the problem) has delay...
I'll see if the new iso, without that module, works.

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post 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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply