From 1634243f63698559005c7af336429d93a4f9b334 Mon Sep 17 00:00:00 2001 From: eupn Date: Tue, 14 Mar 2023 18:48:15 +0400 Subject: [PATCH] kernel: fix compile errors --- kernel/src/main.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/kernel/src/main.rs b/kernel/src/main.rs index 5a6a753cf..8fb64e398 100644 --- a/kernel/src/main.rs +++ b/kernel/src/main.rs @@ -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