I allocate some PTEs and, using my Relocate function, I will change the location of the allocated memory to somewhere else in the memory and thus get a new pointer to the memory block. If I have not written something to the first memory that was allocated and then try to relocate the memory, everything will work fine but if I have already written something to the initial memory block and then try to relocate the memory, Bochs will not show me a Page Fault Exception even though the PTE that maps the memory that I am addressing neither has its Present flag nor its Read/Write bits set. Does anybody have any idea why?
I tried my code on VMWare and I got a Page Fault Exception meaning that VMWare noticed that the PTE that I just set as not present is not really present! MS Virtual PC didn't give me a PF, just like Bochs.
Bochs's bug in handling Page Table Entries
Bochs's bug in handling Page Table Entries
On the field with sword and shield amidst the din of dying of men's wails. War is waged and the battle will rage until only the righteous prevails.
I just figured it out lol. But I did it before you told me
It is strange though how VMWare generates a Page Fault Exception but Bochs doesn't.
Thank you jnc100 for your help.
![Confused :?](./images/smilies/icon_confused.gif)
Thank you jnc100 for your help.
On the field with sword and shield amidst the din of dying of men's wails. War is waged and the battle will rage until only the righteous prevails.