kernel/arch: reverse polarity on sched_locked

This will allow for an enhancement when checking if the thread is
preemptible when exiting an interrupt.

Change-Id: If93ccd1916eacb5e02a4d15b259fb74f9800d6f4
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2016-12-21 14:54:04 -05:00 committed by Andrew Boie
commit e6a69cae54
7 changed files with 14 additions and 11 deletions

View file

@ -93,7 +93,7 @@ SECTION_SUBSEC_FUNC(TEXT, _HandlerModeExit, _ExcExit)
/* scheduler locked ? do not schedule */
cmp r3, #0
bgt _EXIT_EXC
bne _EXIT_EXC
ldr r0, [r0, _kernel_offset_to_ready_q_cache]
cmp r0, r1