Better unimplemented messages

This commit is contained in:
Jeremy Soller
2020-09-09 10:55:29 -06:00
parent 811dd09de4
commit fed3110ae8
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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)]