where Bochs and VMware not work?

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
amirsadig

where Bochs and VMware not work?

Post by amirsadig »

in Bochs und VMWare functioned my kernel very well, but as I test it in my real computer, I receive a page fault exception ??? :'( >:(

the same kernel work in bochs und vmware fine.
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:where Bochs and VMware not work?

Post by distantvoices »

Hmmm ... what's your settings in Bochs/VMware? Memory/CPU usw?

other hints:
Do you set all relevant pointers in your queues to NULL?

Do you set your first element for a search_query to queue->start instead of queue->start->next? (provided you use this approach for linked list management) And yes, it *IS* important!

Do you end a search query with (element==NULL) or with (element->next==NULL)? Maybe you just don't get the last element - which is the crucial one - and get a null pointer?

Do you query for NULL pointers after malloc/realloc?

Do you test a pointer for NULL *before* you test an attribute of it? (thx to solar for this one)

stay safe.
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
User avatar
kataklinger
Member
Member
Posts: 381
Joined: Fri Nov 04, 2005 12:00 am
Location: Serbia

Re:where Bochs and VMware not work?

Post by kataklinger »

Do you invalidate TLB after mapping page?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:where Bochs and VMware not work?

Post by Pype.Clicker »

you may like to check http://www.osdev.org/osfaq2/index.php/B ... 20emulator, which is full of advice for the kind of problem you face :)
Post Reply