diff options
| -rw-r--r-- | arch/arm/crypto/speck-neon-core.S | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/crypto/speck-neon-core.S b/arch/arm/crypto/speck-neon-core.S index 3c1e203e53b9..57caa742016e 100644 --- a/arch/arm/crypto/speck-neon-core.S +++ b/arch/arm/crypto/speck-neon-core.S | |||
| @@ -272,9 +272,11 @@ | |||
| 272 | * Allocate stack space to store 128 bytes worth of tweaks. For | 272 | * Allocate stack space to store 128 bytes worth of tweaks. For |
| 273 | * performance, this space is aligned to a 16-byte boundary so that we | 273 | * performance, this space is aligned to a 16-byte boundary so that we |
| 274 | * can use the load/store instructions that declare 16-byte alignment. | 274 | * can use the load/store instructions that declare 16-byte alignment. |
| 275 | * For Thumb2 compatibility, don't do the 'bic' directly on 'sp'. | ||
| 275 | */ | 276 | */ |
| 276 | sub sp, #128 | 277 | sub r12, sp, #128 |
| 277 | bic sp, #0xf | 278 | bic r12, #0xf |
| 279 | mov sp, r12 | ||
| 278 | 280 | ||
| 279 | .if \n == 64 | 281 | .if \n == 64 |
| 280 | // Load first tweak | 282 | // Load first tweak |
