parisc: Provide an extru_safe() macro to extract unsigned bits
authorHelge Deller <deller@gmx.de>
Fri, 19 Nov 2021 21:16:37 +0000 (22:16 +0100)
committerHelge Deller <deller@gmx.de>
Mon, 22 Nov 2021 06:37:31 +0000 (07:37 +0100)
commit169d1a4a2adb2c246396c56aa2f9eec3868546f1
treedf4284092a168b9639225c3a7f2b9fda16cce31f
parent8d192bec534bd5b778135769a12e5f04580771f7
parisc: Provide an extru_safe() macro to extract unsigned bits

The extru instruction leaves the most significant 32 bits of the
target register in an undefined state on PA 2.0 systems.
Provide a macro to safely use extru on 32- and 64-bit machines.

Suggested-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/assembly.h