]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
m68k: Fix task info flags handling for 68000
authorDaniel Palmer <daniel@0x0f.com>
Sat, 4 Apr 2026 02:31:08 +0000 (11:31 +0900)
committerGreg Ungerer <gerg@kernel.org>
Sun, 5 Apr 2026 22:46:14 +0000 (08:46 +1000)
commit2c6805145e1605cef39459f78979f7edee251b41
treea7a53c0e982fb1a977efd36f6ccbb5a12523e02a
parent591cd656a1bf5ea94a222af5ef2ee76df029c1d2
m68k: Fix task info flags handling for 68000

The logic for deciding what to do after a syscall should be checking
if any of the lower byte bits are set and then checking if the reschedule
bit is set.

Currently we are loading the top word, checking if any bits are set
(which never seems to be true) and thus jumping over loading the
whole long and checking if the reschedule bit is set.

We get the thread info in two places so split that logic out in
a macro and then fix the code so that it loads the byte of the flags
we need to check, checks if anything is set and then checks if
the reschedule bit in particular is set.

Reported-by: Christoph Plattner <christoph.plattner@gmx.at>
Signed-off-by: Daniel Palmer <daniel@0x0f.com>
Signed-off-by: Greg Ungerer <gerg@kernel.org>
arch/m68k/68000/entry.S