Memory after UEFI ExitBootServices

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
teodori
Member
Member
Posts: 103
Joined: Wed Nov 14, 2012 4:55 pm

Memory after UEFI ExitBootServices

Post 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?
Icee
Member
Member
Posts: 100
Joined: Wed Jan 08, 2014 8:41 am
Location: Moscow, Russia

Re: Memory after UEFI ExitBootServices

Post 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.
Post Reply