From 43056ae709e41e7140d4fc4c76b5439a1a9ffe2b Mon Sep 17 00:00:00 2001 From: Kenny Strawn Date: Sun, 28 Aug 2022 06:27:30 -0700 Subject: [PATCH] Fix compilation issues created by remote contribution --- src/cralloc/frames.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cralloc/frames.rs b/src/cralloc/frames.rs index ba7b851..4ac67ee 100644 --- a/src/cralloc/frames.rs +++ b/src/cralloc/frames.rs @@ -143,7 +143,7 @@ pub fn build_from_uefi(fa: &mut impl FrameAllocator) -> StubTables { }; // overwrite old address - let nf = PhysFrame::::containing_address(old.start_address()); + let nf = PhysFrame::::containing_address(old[0].addr()); // back up Cr3 flags let new_flags = old_flags.clone();