checkasm: arm/aarch64: Fix the amount of space reserved for stack parameters
authorMartin Storsjö <martin@martin.st>
Fri, 30 Sep 2016 08:49:47 +0000 (11:49 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 16 Oct 2016 20:26:15 +0000 (23:26 +0300)
commita05cc56124b4f1237f6355784de821e3290ddb44
tree57dc81b83b3e45767ddabcc9751e2ee280b81e0d
parent8e2ea691351c5079cdab245ff7bfa5c0f3e3bfe4
checkasm: arm/aarch64: Fix the amount of space reserved for stack parameters

Even if MAX_ARGS - 2 (for arm) or MAX_ARGS - 7 (for aarch64) parameters
are passed on the stack to checkasm_checked_call, we actually only
need to store MAX_ARGS - 4 (for arm) or MAX_ARGS - 8 (for aarch64)
parameters on the stack when calling the tested function.

Signed-off-by: Martin Storsjö <martin@martin.st>
tests/checkasm/aarch64/checkasm.S
tests/checkasm/arm/checkasm.S