From a9f725dd33041c0c47a8a0b1daa6fd6ce110dcff Mon Sep 17 00:00:00 2001 From: pca006132 Date: Thu, 16 Jul 2020 16:25:26 +0800 Subject: [PATCH] kernel: added error message after uncaught exception --- src/runtime/src/kernel/core1.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runtime/src/kernel/core1.rs b/src/runtime/src/kernel/core1.rs index e1b78841..41f18f0e 100644 --- a/src/runtime/src/kernel/core1.rs +++ b/src/runtime/src/kernel/core1.rs @@ -189,5 +189,7 @@ pub fn terminate(exception: &'static eh_artiq::Exception<'static>, backtrace: &' let core1_tx: &mut sync_channel::Sender = unsafe { mem::transmute(KERNEL_CHANNEL_1TO0) }; core1_tx.send(Message::KernelException(exception, &backtrace[..cursor])); + // TODO: remove after implementing graceful kernel termination. + error!("Core1 uncaught exception"); loop {} }