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