Loading files

This commit is contained in:
Justin C. Miller
2020-02-25 22:22:12 -08:00
parent 4accfd136e
commit d94907ae79
5 changed files with 82 additions and 15 deletions

View File

@@ -7,6 +7,12 @@
namespace boot {
namespace memory {
constexpr size_t page_size = 0x1000;
inline constexpr size_t bytes_to_pages(size_t bytes) {
return ((bytes - 1) / page_size) + 1;
}
void init_pointer_fixup(uefi::boot_services *bs, uefi::runtime_services *rs);
void mark_pointer_fixup(void **p);