diff options
author | Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> | 2022-02-14 13:41:41 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-03-07 16:04:58 +0300 |
commit | b10cb163c4b31b03ac5014abbfd0b868913fd8e3 (patch) | |
tree | 4b37da73efaf0aabb1fd086489cd022d1ea8cc8e /ipc | |
parent | 4eeac2b0aaadc3d1943d348d8565f7cfb93272b9 (diff) | |
download | linux-b10cb163c4b31b03ac5014abbfd0b868913fd8e3.tar.xz |
powerpc64/bpf elfv2: Setup kernel TOC in r2 on entry
In preparation for using kernel TOC, load the same in r2 on entry. With
elfv1, the kernel TOC is already setup by our caller.
We adjust the number of instructions to skip on a tail call accordingly.
We get rid of the #ifdef in bpf_jit_emit_tail_call() since
FUNCTION_DESCR_SIZE is itself under a #ifdef.
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/18a05a4ceec14a8617c9dd4b7128d0afa83fd14e.1644834730.git.naveen.n.rao@linux.vnet.ibm.com
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions