Better unimplemented messages
This commit is contained in:
@@ -190,7 +190,7 @@ impl<A: Arch> FrameAllocator for BuddyAllocator<A> {
|
||||
//TODO: improve performance
|
||||
let mut map_phys = entry.map;
|
||||
loop {
|
||||
if map_phys.data() == 0 { unimplemented!() }
|
||||
if map_phys.data() == 0 { unimplemented!("map_phys.data() == 0") }
|
||||
let map_virt = A::phys_to_virt(map_phys);
|
||||
if map_page == 0 {
|
||||
let map_byte_virt = map_virt.add(map_bit / 8);
|
||||
|
||||
@@ -54,6 +54,6 @@ impl<A: Arch> FrameAllocator for BumpAllocator<A> {
|
||||
}
|
||||
|
||||
unsafe fn free(&mut self, _address: PhysicalAddress, _count: FrameCount) {
|
||||
unimplemented!();
|
||||
unimplemented!("BumpAllocator::free not implemented");
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -228,7 +228,7 @@ impl<A: Arch> Machine<A> {
|
||||
}
|
||||
|
||||
fn invalidate(&mut self, _address: VirtualAddress) {
|
||||
unimplemented!();
|
||||
unimplemented!("EmulateArch::invalidate not implemented");
|
||||
}
|
||||
|
||||
//TODO: cleanup
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ impl Arch for X8664Arch {
|
||||
const PHYS_OFFSET: usize = Self::PAGE_NEGATIVE_MASK + (Self::PAGE_ADDRESS_SIZE >> 1); // PML4 slot 256 and onwards
|
||||
|
||||
unsafe fn init() -> &'static [MemoryArea] {
|
||||
unimplemented!()
|
||||
unimplemented!("X8664Arch::init unimplemented");
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
|
||||
Reference in New Issue
Block a user