]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Cleanup check for stack expansion
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 19 Jul 2017 04:49:45 +0000 (14:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Aug 2017 06:06:51 +0000 (16:06 +1000)
commit9df21aa007efb21932081eeba98134dacddb300e
tree1778a6e1338fb461ad5eb41c640c169e1ba02448
parentaf34db0668e8ba13787a1f116ac3c7f9ed91f452
powerpc/mm: Cleanup check for stack expansion

When hitting below a VM_GROWSDOWN vma (typically growing the stack),
we check whether it's a valid stack-growing instruction and we
check the distance to GPR1. This is largely open coded with lots
of comments, so move it out to a helper.

While at it, make store_update_sp a boolean.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/fault.c