]> git.baikalelectronics.ru Git - kernel.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>
Thu, 24 Oct 2013 15:16:59 +0000 (17:16 +0200)
commit30b490aec375ce6fd1d6df5e946854ead89da446
tree618a8ed3f69e1c3298d0c50342782e2c7f0387fa
parentc940cd23387a7b4a90ea9e1e3f0ad28484a25982
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