diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-09-10 19:18:03 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-09-10 19:18:03 +0800 |
| commit | f0681d59e7c9ea6f2bdfd2be4ebee802d939a5ae (patch) | |
| tree | 5ea6950d7c2497c7e2e53cee4ca15f07758d25fa | |
| parent | 9766045276292ff79b2bc8768d2612811cdf2141 (diff) | |
fix: Cargo
| -rw-r--r-- | Cargo.toml | 7 | ||||
| -rw-r--r-- | kernel/src/pm/panic.rs | 6 |
2 files changed, 11 insertions, 2 deletions
@@ -1,5 +1,10 @@ [workspace] resolver = "3" members = ["x"] -exclude = ["kernel"] default-members = ["x"] + +# [profile.dev] +# panic = "abort" + +# [profile.release] +# panic = "abort" diff --git a/kernel/src/pm/panic.rs b/kernel/src/pm/panic.rs index d2f1bb2..5c24452 100644 --- a/kernel/src/pm/panic.rs +++ b/kernel/src/pm/panic.rs @@ -2,7 +2,11 @@ use core::panic::PanicInfo; use crate::{pm::hcf, printlnk}; -#[panic_handler] +#[allow(dead_code)] +#[cfg_attr( + target_os = "none", + panic_handler +)] fn panic(info: &PanicInfo) -> ! { _ = printlnk!("{info}"); hcf() |
