-
-
Notifications
You must be signed in to change notification settings - Fork 70
Closed
rust-osdev/x86_64
#204Description
Hello!
I tried to use this library but miserably failed to do so while battling with the rust compiler.
Could you add a little example while using the x86_64 crates FrameAllocator & OffsetPageTable?
I would deeply appreciate it :)
I tried using a struct like this:
#[derive(Clone)]
pub struct MyAcpiHandler<'a> {
mapper: Rc<RefCell<&'a mut OffsetPageTable<'a>>>,
frame_allocator: Rc<RefCell<&'a mut dyn FrameAllocator<Size4KiB>>>,
}
but this failed with the error:
.map_to(page, frame, flags, self.frame_allocator.get_mut())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FrameAllocator<Size4KiB>` is not implemented for `&mut dyn FrameAllocator<Size4KiB>`
Metadata
Metadata
Assignees
Labels
No labels