Searched hist:"4 b9d2a731c3d22a05c1bccdb11b6e00054ff5fda" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/arch/parisc/include/asm/ |
H A D | uaccess.h | diff 4b9d2a731c3d22a05c1bccdb11b6e00054ff5fda Thu Dec 23 14:46:35 CST 2021 Helge Deller <deller@gmx.de> 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>
|
/openbmc/linux/arch/parisc/mm/ |
H A D | fault.c | diff 4b9d2a731c3d22a05c1bccdb11b6e00054ff5fda Thu Dec 23 14:46:35 CST 2021 Helge Deller <deller@gmx.de> 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>
|