Commit 05be1824 authored by Jan Seiffert's avatar Jan Seiffert Committed by David S. Miller
Browse files

bpf jit: Let the powerpc jit handle negative offsets



Now the helper function from filter.c for negative offsets is exported,
it can be used it in the jit to handle negative offsets.

First modify the asm load helper functions to handle:
- know positive offsets
- know negative offsets
- any offset

then the compiler can be modified to explicitly use these helper
when appropriate.

This fixes the case of a negative X register and allows to lift
the restriction that bpf programs with negative offsets can't
be jited.

Tested-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarJan Seiffert <kaffeemonster@googlemail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 518fbf9c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment