ARC: unbork 5.11 bootup: fix snafu in _TIF_NOTIFY_SIGNAL handling
authorVineet Gupta <vgupta@synopsys.com>
Wed, 6 Jan 2021 20:34:36 +0000 (12:34 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Dec 2022 21:30:34 +0000 (14:30 -0700)
commitec98073a6e28f5b0e962b801d1a706479a770e71
tree9e3a12938e9a9fbc93683995eb408b09eefeec2f
parent621649af8b9db1666b299d6b8c1bd384f01c4e23
ARC: unbork 5.11 bootup: fix snafu in _TIF_NOTIFY_SIGNAL handling

[ Upstream commit bb12433bf56e76789c6b08b36c546f745a6aa6e1 ]

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 <axboe@kernel.dk>
Fixes: 53855e12588743ea128 ("arc: add support for TIF_NOTIFY_SIGNAL")
Link: https://github.com/foss-for-synopsys-dwc-arc-processors/linux/issues/34
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/entry.S