From 1e287b2591c1d9d75f80aa932077b867f0b2ac50 Mon Sep 17 00:00:00 2001 From: zms123456 <85141075+zmshahaha@users.noreply.github.com> Date: Thu, 13 Jun 2024 16:09:56 +0800 Subject: [PATCH] [src][kservice]fix shutdown log (#9061) fix shutdown log --- src/kservice.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/kservice.c b/src/kservice.c index f3ccaba802..25d7f2e7e0 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -78,15 +78,11 @@ rt_weak void rt_hw_cpu_reset(void) rt_weak void rt_hw_cpu_shutdown(void) { - rt_base_t level; LOG_I("CPU shutdown..."); LOG_W("Using default rt_hw_cpu_shutdown()." - "Please consider implementing rt_hw_cpu_reset() in another file."); - level = rt_hw_interrupt_disable(); - while (level) - { - RT_ASSERT(RT_NULL); - } + "Please consider implementing rt_hw_cpu_shutdown() in another file."); + rt_hw_interrupt_disable(); + RT_ASSERT(0); return; }