aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/pgalloc.h
diff options
context:
space:
mode:
authorDavid Daney <[email protected]>2017-03-14 14:21:43 -0700
committerRalf Baechle <[email protected]>2017-04-10 11:56:05 +0200
commit1ef0910cfd681f0bd0b81f8809935b2006e9cfb9 (patch)
tree43072e680174b34ffbaf5afe592091b45a273111 /arch/mips/include/asm/pgalloc.h
parent64b2dd3a8be3ec4e08fd5a3dab0620d9c6c398fe (diff)
MIPS: BPF: Quit clobbering callee saved registers in JIT code.
If bpf_needs_clear_a() returns true, only actually clear it if it is ever used. If it is not used, we don't save and restore it, so the clearing has the nasty side effect of clobbering caller state. Also, don't emit stack pointer adjustment instructions if the adjustment amount is zero. Signed-off-by: David Daney <[email protected]> Cc: James Hogan <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Steven J. Hill <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/15745/ Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'arch/mips/include/asm/pgalloc.h')
0 files changed, 0 insertions, 0 deletions