diff --git a/os/hal/ports/simulator/win32/hal_lld.c b/os/hal/ports/simulator/win32/hal_lld.c index 5b50ca5c3..b513719a1 100644 --- a/os/hal/ports/simulator/win32/hal_lld.c +++ b/os/hal/ports/simulator/win32/hal_lld.c @@ -100,10 +100,10 @@ void _sim_check_for_interrupts(void) { } if (int_occurred) { - _dbg_check_lock(); + __dbg_check_lock(); if (chSchIsPreemptionRequired()) - chSchDoReschedule(); - _dbg_check_unlock(); + chSchDoPreemption(); + __dbg_check_unlock(); } }