summaryrefslogtreecommitdiff
path: root/arch/parisc/kernel/traps.c
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@bell.net>2021-12-22 16:01:31 +0000
committerHelge Deller <deller@gmx.de>2022-01-07 01:29:20 +0100
commitdb19c6f1a2a353cc8dec35b4789733a3cf6e2838 (patch)
tree8db186ad620adca2e96c51ec9fd30cd2e67e534d /arch/parisc/kernel/traps.c
parent45458aa49abe3b0ac68ce86b3d4ca3a97eaeac53 (diff)
parisc: Fix lpa and lpa_user defines
While working on the rewrite to the light-weight syscall and futex code, I experimented with using a hash index based on the user physical address of atomic variable. This exposed two problems with the lpa and lpa_user defines. Because of the copy instruction, the pa argument needs to be an early clobber argument. This prevents gcc from allocating the va and pa arguments to the same register. Secondly, the lpa instruction can cause a page fault so we need to catch exceptions. Signed-off-by: John David Anglin <dave.anglin@bell.net> Fixes: 116d753308cf ("parisc: Use lpa instruction to load physical addresses in driver code") Signed-off-by: Helge Deller <deller@gmx.de> Cc: stable@vger.kernel.org # v5.2+
Diffstat (limited to 'arch/parisc/kernel/traps.c')
0 files changed, 0 insertions, 0 deletions