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.
where Bochs and VMware not work?
-
- Member
- Posts: 1600
- Joined: Wed Oct 18, 2006 11:59 am
- Location: Vienna/Austria
- Contact:
Re:where Bochs and VMware not work?
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.
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
BlueillusionOS iso image
- kataklinger
- Member
- Posts: 381
- Joined: Fri Nov 04, 2005 12:00 am
- Location: Serbia
Re:where Bochs and VMware not work?
Do you invalidate TLB after mapping page?
- Pype.Clicker
- 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?
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