From 1103fb0dfc9e616f09c76cf3b1e41a7925b50862 Mon Sep 17 00:00:00 2001 From: occheung Date: Wed, 4 Sep 2024 14:39:43 +0800 Subject: [PATCH] satman coremgmt: code after reboot is unreachable --- src/satman/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/satman/src/main.rs b/src/satman/src/main.rs index bf8065b..7cfcb22 100644 --- a/src/satman/src/main.rs +++ b/src/satman/src/main.rs @@ -1262,7 +1262,8 @@ fn process_aux_packet( drtioaux::send(0, &drtioaux::Packet::CoreMgmtReply { succeeded: true })?; info!("reboot imminent"); slcr::reboot(); - Ok(()) + + unreachable!(); } drtioaux::Packet::CoreMgmtAllocatorDebugRequest { destination: _destination,