Fix code for x86_64 v0.9.5 update

This commit is contained in:
Philipp Oppermann
2020-03-08 14:30:33 +01:00
parent f230ee4258
commit 7b0d8f05ba

View File

@@ -17,7 +17,7 @@ static ALLOCATOR: LockedHeap = LockedHeap::empty();
pub fn init_heap( pub fn init_heap(
mapper: &mut impl Mapper<Size4KiB>, mapper: &mut impl Mapper<Size4KiB>,
frame_allocator: &mut impl FrameAllocator<Size4KiB>, frame_allocator: &mut impl FrameAllocator<Size4KiB>,
) -> Result<(), MapToError> { ) -> Result<(), MapToError<Size4KiB>> {
let page_range = { let page_range = {
let heap_start = VirtAddr::new(HEAP_START as u64); let heap_start = VirtAddr::new(HEAP_START as u64);
let heap_end = heap_start + HEAP_SIZE - 1u64; let heap_end = heap_start + HEAP_SIZE - 1u64;