Loongarch64 supports shutting down. We gracefully power us off when we can't proceed... Signed-off-by: greatbridf <greatbridf@icloud.com>
@@ -48,12 +48,12 @@ use kernel_init::setup_memory;
use path::Path;
use prelude::*;
-#[cfg(target_arch = "riscv64")]
+#[cfg(any(target_arch = "riscv64", target_arch = "loongarch64"))]
fn do_panic() -> ! {
shutdown();
}
-#[cfg(not(target_arch = "riscv64"))]
+#[cfg(not(any(target_arch = "riscv64", target_arch = "loongarch64")))]
// Spin forever.
loop {