diff options
author | Ard Biesheuvel <ard.biesheuvel@gmail.com> | 2013-05-15 10:46:30 +0100 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2015-03-19 02:14:57 +0100 |
commit | 6d84f7a35e1753d16ff757a8fbefa84ad5f1e9ed (patch) | |
tree | 507436c018a2c166186a3e3d3feb56122a13c05e /arch/arm | |
parent | 34f8851634f83470bcc87d887ae9a4d97fc7fb08 (diff) | |
download | kernel_samsung_tuna-6d84f7a35e1753d16ff757a8fbefa84ad5f1e9ed.zip kernel_samsung_tuna-6d84f7a35e1753d16ff757a8fbefa84ad5f1e9ed.tar.gz kernel_samsung_tuna-6d84f7a35e1753d16ff757a8fbefa84ad5f1e9ed.tar.bz2 |
ARM: 7723/1: crypto: sha1-armv4-large.S: fix SP handling
Make the SHA1 asm code ABI conformant by making sure all stack
accesses occur above the stack pointer.
Origin:
http://git.openssl.org/gitweb/?p=openssl.git;a=commit;h=1a9d60d2
Change-Id: I89fe44b5021ee3d37ac924f04a82e9631e31843e
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Cc: stable@vger.kernel.org
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/crypto/sha1-armv4-large.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/crypto/sha1-armv4-large.S b/arch/arm/crypto/sha1-armv4-large.S index 92c6eed..99207c4 100644 --- a/arch/arm/crypto/sha1-armv4-large.S +++ b/arch/arm/crypto/sha1-armv4-large.S @@ -195,6 +195,7 @@ ENTRY(sha1_block_data_order) add r3,r3,r10 @ E+=F_00_19(B,C,D) cmp r14,sp bne .L_00_15 @ [((11+4)*5+2)*3] + sub sp,sp,#25*4 #if __ARM_ARCH__<7 ldrb r10,[r1,#2] ldrb r9,[r1,#3] @@ -290,7 +291,6 @@ ENTRY(sha1_block_data_order) add r3,r3,r10 @ E+=F_00_19(B,C,D) ldr r8,.LK_20_39 @ [+15+16*4] - sub sp,sp,#25*4 cmn sp,#0 @ [+3], clear carry to denote 20_39 .L_20_39_or_60_79: ldr r9,[r14,#15*4] |