bootloader
bootloader copied to clipboard
'kernel mapping failed'
I'm not sure what to do about this or if this is the right place but whenever I try to run the very barest of what I understand should work in terms of code for a kernel
#![no_std]
#![no_main]
use core::panic::PanicInfo;
#[no_mangle]
pub extern "C" fn _start() -> ! {
loop {}
}
#[panic_handler]
fn panic(_panic_info: &PanicInfo) -> ! {
loop {}
}
But no matter what it wont work and it throws an error saying panicked at 'kernel mapping failed: Mapping(PageAlreadyMapped(PhysFrame[4KiB](0x401000)))', src\main.rs:285:6
I'm building using x86_64-unkown-none as the target and using the BootImage command to build it
The bootimage command uses version 0.9 of the bootloader which doesn't support x86_64-unkown-none. You should use a custom target spec instead.
I think this is answered.