Is there a way to check if the PML4 is valid?
Is there a way to check if the PML4 is valid?
Just out of curiosity, you can check if a Page Map Level 4 is valid and will not cause a triple fault if we write it to cr3? I know that I can check if it's NULL but it's not helping in some cases.
The code does get a bit quirky at night.
Re: Is there a way to check if the PML4 is valid?
Just make sure it points to a valid page table.
Re: Is there a way to check if the PML4 is valid?
How can I do that?iansjack wrote:Just make sure it points to a valid page table.
The code does get a bit quirky at night.
Re: Is there a way to check if the PML4 is valid?
You know the structure of a page table. So just read it and check the validity of each entry.
If you are using qemu then the monitor can do this for you with the "info mem" command.
If you are using qemu then the monitor can do this for you with the "info mem" command.
Re: Is there a way to check if the PML4 is valid?
Oh, okay, I'll check that out.iansjack wrote:You know the structure of a page table. So just read it and check the validity of each entry.
If you are using qemu then the monitor can do this for you with the "info mem" command.
The code does get a bit quirky at night.