Page 1 of 1
where Bochs and VMware not work?
Posted: Fri Jun 04, 2004 10:57 am
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.
Re:where Bochs and VMware not work?
Posted: Fri Jun 04, 2004 11:22 am
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.
Re:where Bochs and VMware not work?
Posted: Fri Jun 04, 2004 6:34 pm
by kataklinger
Do you invalidate TLB after mapping page?
Re:where Bochs and VMware not work?
Posted: Sat Jun 05, 2004 7:20 am
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