Problem with getting pml4 table address
Posted: Sat Oct 08, 2016 11:48 pm
hi guys,
I got some problems while i am trying to get the PML4 address from CR3 register.
The first one is because I dont want to use my page table so I desire to keep UEFIs, but when I try to get the physical address from cr3 by using:
It return back the virtual address, obviously virtual address cant convert to physical address without the page table, so how can I get physical address actually store in cr3?
The second problem is do I need keep tracking how many free pages there?
Thank you.
OhShift
I got some problems while i am trying to get the PML4 address from CR3 register.
The first one is because I dont want to use my page table so I desire to keep UEFIs, but when I try to get the physical address from cr3 by using:
Code: Select all
asm(".intel_syntax noprefix;" "mov rax, cr3;" ".att_syntax prefix;" : : "a" (PML4Addr));
The second problem is do I need keep tracking how many free pages there?
Thank you.
OhShift