From 750f05c3224e5adb08124c5603a5bdc0dc0c347d Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sun, 30 Aug 2020 00:33:30 +0800 Subject: [PATCH] kernel: cargo: add print-panics feature With this feature enabled, the kernel will claim a UART and print panics when they occur. Signed-off-by: Sean Cross --- kernel/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/Cargo.toml b/kernel/Cargo.toml index f03771675..2931d65ca 100644 --- a/kernel/Cargo.toml +++ b/kernel/Cargo.toml @@ -16,8 +16,9 @@ riscv = "0.5.6" [features] debug-print = [] +print-panics = [] report-memory = ["stats_alloc"] -#default = ["debug-print"] +default = ["print-panics"] [target.'cfg(any(windows, unix))'.dependencies] lazy_static = "1.4"