Skip to content

Commit bb12433

Browse files
committed
ARC: unbork 5.11 bootup: fix snafu in _TIF_NOTIFY_SIGNAL handling
Linux 5.11.rcX was failing to boot on ARC HSDK board. Turns out we have a couple of issues, this being the first one, and I'm to blame as I didn't pay attention during review. TIF_NOTIFY_SIGNAL support requires checking multiple TIF_* bits in kernel return code path. Old code only needed to check a single bit so BBIT0 <TIF_SIGPENDING> worked. New code needs to check multiple bits so AND <bit-mask> instruction. So needs to use bit mask variant _TIF_SIGPENDING Cc: Jens Axboe <[email protected]> Fixes: 53855e1 ("arc: add support for TIF_NOTIFY_SIGNAL") Link: foss-for-synopsys-dwc-arc-processors#34 Signed-off-by: Vineet Gupta <[email protected]>
1 parent f4d9359 commit bb12433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arc/kernel/entry.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ resume_user_mode_begin:
307307
mov r0, sp ; pt_regs for arg to do_signal()/do_notify_resume()
308308

309309
GET_CURR_THR_INFO_FLAGS r9
310-
and.f 0, r9, TIF_SIGPENDING|TIF_NOTIFY_SIGNAL
310+
and.f 0, r9, _TIF_SIGPENDING|_TIF_NOTIFY_SIGNAL
311311
bz .Lchk_notify_resume
312312

313313
; Normal Trap/IRQ entry only saves Scratch (caller-saved) regs

0 commit comments

Comments
 (0)