parisc: Switch user access functions to signal errors in r29 instead of r8
authorHelge Deller <deller@gmx.de>
Thu, 23 Dec 2021 20:46:35 +0000 (21:46 +0100)
committerHelge Deller <deller@gmx.de>
Fri, 7 Jan 2022 00:29:21 +0000 (01:29 +0100)
commit4b9d2a731c3d22a05c1bccdb11b6e00054ff5fda
tree5eef0589eef5ddb7f78c6deb8d12109ae6d14b01
parent9e9d4b460f23bab61672eae397417d03917d116c
parisc: Switch user access functions to signal errors in r29 instead of r8

Use register r29 instead of register r8 to signal faults when accessing
user memory. In case of faults, the fixup routine will store -EFAULT in
this register.

This change saves up to 752 bytes on a 32bit kernel, partly because the
compiler doesn't need to save and restore the old r8 value on the stack.

bloat-o-meter results for usage with r29 register:
add/remove: 0/0 grow/shrink: 23/86 up/down: 228/-980 (-752)

bloat-o-meter results for usage with r28 register:
add/remove: 0/0 grow/shrink: 28/83 up/down: 296/-956 (-660)

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/uaccess.h
arch/parisc/mm/fault.c