Skip to content
Commit 3f88ddd5 authored by Wayne Ren's avatar Wayne Ren Committed by Anas Nashif
Browse files

arch: arc: overhaul the thread switch code in epilogue of irq and exception



overhaul the thread switch code in epilogue of irq and
exception handling:
* add z_arch_get_next_switch_handle to call z_get_next_switch_handle,
  let the scheduler to decide the switch thread. This will also cover
  the case of SMP.

* put lots of common codes in macros for thread switch to improve
  the maintainablity, readability.

* clean up of some lables to make codes easier to understand

Signed-off-by: default avatarWayne Ren <wei.ren@synopsys.com>
parent 34b033d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment