kernel: fix compile errors

This commit is contained in:
eupn 2023-03-14 18:48:15 +04:00
parent 7f5656445a
commit 1634243f63
No known key found for this signature in database
GPG key ID: 0BBE77FB42014014

View file

@ -5,7 +5,7 @@
#![cfg_attr(baremetal, no_std)]
#[cfg(baremetal)]
#[macro_use]
#[cfg_attr(not(target_arch = "arm"), macro_use)]
extern crate bitflags;
#[macro_use]
@ -30,17 +30,6 @@ mod syscall;
use services::SystemServices;
use xous_kernel::*;
#[cfg(baremetal)]
use core::panic::PanicInfo;
#[cfg(baremetal)]
#[panic_handler]
fn handle_panic(_arg: &PanicInfo) -> ! {
println!("PANIC in PID {}: {}", crate::arch::current_pid(), _arg);
loop {
arch::idle();
}
}
#[cfg(baremetal)]
#[no_mangle]
/// This function is called from baremetal startup code to initialize various kernel structures