From c930b4f623cefa283d95c4de3b5804fb26fdd8ce Mon Sep 17 00:00:00 2001 From: linshire <89723088+linshire@users.noreply.github.com> Date: Thu, 22 Dec 2022 09:34:36 +0800 Subject: [PATCH] =?UTF-8?q?[ch32]=E5=AF=B9=E6=8E=A5=E4=BA=86rt=5Fhw=5Fcont?= =?UTF-8?q?ext=5Fswitch=5Finterrupt=E6=8E=A5=E5=8F=A3=20(#6749)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 对接了rt_hw_context_switch_interruptC(rt_ubase_t from, rt_ubase_t to, rt_thread_t from_thread, rt_thread_t to_thread)接口 * Update libcpu/risc-v/ch32v1/cpuport.c Co-authored-by: Man, Jianting (Meco) <920369182@qq.com> --- libcpu/risc-v/ch32v1/cpuport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcpu/risc-v/ch32v1/cpuport.c b/libcpu/risc-v/ch32v1/cpuport.c index 3bd76ee561..14bf15ccc2 100644 --- a/libcpu/risc-v/ch32v1/cpuport.c +++ b/libcpu/risc-v/ch32v1/cpuport.c @@ -172,7 +172,7 @@ void rt_hw_interrupt_enable(rt_base_t level) * void rt_hw_context_switch_interrupt(rt_ubase_t from, rt_ubase_t to); * #endif */ -void rt_hw_context_switch_interrupt(rt_ubase_t from, rt_ubase_t to) +void rt_hw_context_switch_interrupt(rt_ubase_t from, rt_ubase_t to, rt_thread_t from_thread, rt_thread_t to_thread) { if (rt_thread_switch_interrupt_flag == 0) rt_interrupt_from_thread = from;