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 <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-08-30 00:33:30 +08:00
parent f2156b19bd
commit 750f05c322

View file

@ -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"