kernel: added error message after uncaught exception

This commit is contained in:
pca006132 2020-07-16 16:25:26 +08:00 committed by Gitea
parent caef2a9f84
commit a9f725dd33

View File

@ -189,5 +189,7 @@ pub fn terminate(exception: &'static eh_artiq::Exception<'static>, backtrace: &'
let core1_tx: &mut sync_channel::Sender<Message> = unsafe { mem::transmute(KERNEL_CHANNEL_1TO0) }; let core1_tx: &mut sync_channel::Sender<Message> = unsafe { mem::transmute(KERNEL_CHANNEL_1TO0) };
core1_tx.send(Message::KernelException(exception, &backtrace[..cursor])); core1_tx.send(Message::KernelException(exception, &backtrace[..cursor]));
// TODO: remove after implementing graceful kernel termination.
error!("Core1 uncaught exception");
loop {} loop {}
} }