]> git.ipfire.org Git - thirdparty/nettle.git/commit
powerpc64/sha256: adjust stack offset for storing non-volatile registers
authorEric Richter <erichte@linux.ibm.com>
Thu, 29 Aug 2024 14:44:25 +0000 (09:44 -0500)
committerNiels Möller <nisse@lysator.liu.se>
Fri, 30 Aug 2024 07:42:14 +0000 (09:42 +0200)
commit9d8b3e93bbfea1da668a28760540a2b25fae4a50
treea2a6d6bb96fccbca9470274faaed24de0904e223
parent95d7ebbafaea628751e35d2ce1c4c5d2617ed5de
powerpc64/sha256: adjust stack offset for storing non-volatile registers

According to the ABI, the stack pointer is quadword aligned, so starting
the stack storage at offset -8, may cause the return address to be
stepped on. Adjusting to use -16 as the starting point, which also
matches other POWER assembly code.

Signed-off-by: Eric Richter <erichte@linux.ibm.com>
powerpc64/p8/sha256-compress-n.asm