Page 1 of 1

Memory after UEFI ExitBootServices

Posted: Thu Feb 18, 2016 8:40 am
by teodori
Hello, UEFI uses a flat memory model where virtual equals physical memory. During normal UEFI application processing I use AllocatePage() and FreePage(), but at a certain time I call GetMemoryMap() and ExitBootServices(). Can I at that time 'movl %cr3, %eax' and than work with the page tables?

Re: Memory after UEFI ExitBootServices

Posted: Thu Feb 18, 2016 9:16 am
by Icee
Yes, but if you want to use UEFI runtime services then before you change the mapping you'll need to call SetVirtualAddressMap() with your custom map.