Browse Source

fix: 修复unified-init导致cargo check失败的问题 (#747)

LoGin 10 months ago
parent
commit
d770de5d53
1 changed files with 7 additions and 0 deletions
  1. 7 0
      kernel/crates/unified-init/src/main.rs

+ 7 - 0
kernel/crates/unified-init/src/main.rs

@@ -7,6 +7,13 @@ fn main() {
     todo!()
 }
 
+#[cfg(target_os = "none")]
+#[panic_handler]
+#[no_mangle]
+pub fn panic(_info: &core::panic::PanicInfo) -> ! {
+    loop {}
+}
+
 #[cfg(test)]
 mod tests {
     use system_error::SystemError;