]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/bpf,jit: fix prolog oddity
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 4 Oct 2013 09:12:16 +0000 (11:12 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 22 Oct 2013 07:18:16 +0000 (09:18 +0200)
commit26e4c504717a5bcb466aa22862618a5a2b59eea0
tree9c7f7677390834e12c0595d1d1719bbeeb04929d
parenta6639fae6f7123c0f2bf76dc971f5ee79c289868
s390/bpf,jit: fix prolog oddity

The prolog of functions generated by the bpf jit compiler uses an
instruction sequence with an "ahi" instruction to create stack space
instead of using an "aghi" instruction. Using the 32-bit "ahi" is not
wrong as the stack we are operating on is an order-4 allocation which
is always aligned to 16KB. But it is more consistent to use an "aghi"
as the stack pointer is a 64-bit value.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/net/bpf_jit_comp.c