mirror of https://github.com/m-labs/artiq.git
ksupport: fix panic, libc, unwind
This commit is contained in:
parent
905330b0f1
commit
1b8b4baf6a
|
@ -20,3 +20,5 @@ dyld = { path = "../libdyld" }
|
||||||
board_misoc = { path = "../libboard_misoc" }
|
board_misoc = { path = "../libboard_misoc" }
|
||||||
board_artiq = { path = "../libboard_artiq" }
|
board_artiq = { path = "../libboard_artiq" }
|
||||||
riscv = { version = "0.6.0", features = ["inline-asm"] }
|
riscv = { version = "0.6.0", features = ["inline-asm"] }
|
||||||
|
libc = { path = "../libc" }
|
||||||
|
unwind = { path = "../libunwind" }
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#![feature(lang_items, asm, panic_unwind, libc, unwind_attributes,
|
#![feature(lang_items, asm, panic_unwind, libc, unwind_attributes,
|
||||||
panic_implementation, panic_info_message, nll)]
|
panic_handler, panic_info_message, nll)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
|
@ -51,7 +51,7 @@ macro_rules! recv {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle] // https://github.com/rust-lang/rust/issues/{38281,51647}
|
#[no_mangle] // https://github.com/rust-lang/rust/issues/{38281,51647}
|
||||||
#[panic_implementation]
|
#[panic_handler]
|
||||||
pub fn panic_fmt(info: &core::panic::PanicInfo) -> ! {
|
pub fn panic_fmt(info: &core::panic::PanicInfo) -> ! {
|
||||||
if let Some(location) = info.location() {
|
if let Some(location) = info.location() {
|
||||||
send(&Log(format_args!("panic at {}:{}:{}",
|
send(&Log(format_args!("panic at {}:{}:{}",
|
||||||
|
|
Loading…
Reference in New Issue