mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +00:00
kernel: fix compile errors
This commit is contained in:
parent
7f5656445a
commit
1634243f63
1 changed files with 1 additions and 12 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
#![cfg_attr(baremetal, no_std)]
|
#![cfg_attr(baremetal, no_std)]
|
||||||
|
|
||||||
#[cfg(baremetal)]
|
#[cfg(baremetal)]
|
||||||
#[macro_use]
|
#[cfg_attr(not(target_arch = "arm"), macro_use)]
|
||||||
extern crate bitflags;
|
extern crate bitflags;
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
@ -30,17 +30,6 @@ mod syscall;
|
||||||
use services::SystemServices;
|
use services::SystemServices;
|
||||||
use xous_kernel::*;
|
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)]
|
#[cfg(baremetal)]
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
/// This function is called from baremetal startup code to initialize various kernel structures
|
/// This function is called from baremetal startup code to initialize various kernel structures
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue