We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d794b5e commit be99751Copy full SHA for be99751
src/lib.rs
@@ -78,8 +78,6 @@ pub(crate) mod fd;
78
mod mm;
79
#[cfg(feature = "tcp")]
80
mod net;
81
-#[cfg(target_os = "none")]
82
-mod runtime_glue;
83
mod scheduler;
84
mod synch;
85
mod syscalls;
@@ -381,3 +379,12 @@ fn application_processor_main() -> ! {
381
379
// Run the scheduler loop.
382
380
core_scheduler.run();
383
}
+
+#[cfg(target_os = "none")]
384
+#[panic_handler]
385
+fn panic(info: &core::panic::PanicInfo<'_>) -> ! {
386
+ let core_id = crate::arch::core_local::core_id();
387
+ println!("[{core_id}][PANIC] {info}");
388
389
+ crate::syscalls::shutdown(1)
390
+}
src/runtime_glue.rs
0 commit comments