MIPS: BPF: Use 32 or 64-bit load instruction to load an address to register
authorMarkos Chandras <[email protected]>
Wed, 25 Jun 2014 08:39:38 +0000 (09:39 +0100)
committerRalf Baechle <[email protected]>
Thu, 26 Jun 2014 09:48:22 +0000 (10:48 +0100)
commitb6a14a9845259eb21c9d8121330c4c3b22de182e
treecc8b63b121c15347027f7a92dcac61fd6ec01ec5
parentb4fe0ec86dae91abfa9f932cd0e2e9d50e336c8b
MIPS: BPF: Use 32 or 64-bit load instruction to load an address to register

When loading a pointer to register we need to use the appropriate
32 or 64bit instruction to preserve the pointers' top 32bits.

Signed-off-by: Markos Chandras <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/7180/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/net/bpf_jit.c