]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: fix preempt_count() check in entry.S
authorSven Schnelle <svens@stackframe.org>
Sat, 9 Oct 2021 18:24:37 +0000 (20:24 +0200)
committerHelge Deller <deller@gmx.de>
Sat, 30 Oct 2021 21:11:01 +0000 (23:11 +0200)
commit158de027abda03d23353d4d456c0ea137e9df893
tree16061219ead94b723beb244da7255526a7b52c1b
parent643acd843fbfa9588413e854378c9bfa1549c319
parisc: fix preempt_count() check in entry.S

preempt_count in struct thread_info is unsigned int,
but the entry.S code used LDREG, which generates a 64 bit
load when compiled for 64 bit. Fix this to use an ldw and
also change the condition in the compare one line below
to only compares 32 bits, although ldw zero extends, and
that should work with a 64 bit compare.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/entry.S