2 # Copyright 2015-2020 The OpenSSL Project Authors. All Rights Reserved.
4 # Licensed under the OpenSSL license (the "License"). You may not use
5 # this file except in compliance with the License. You can obtain a copy
6 # in the file LICENSE in the source distribution or at
7 # https://www.openssl.org/source/license.html
13 $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
14 ( $xlate="${dir}arm-xlate.pl" and -f $xlate ) or
15 ( $xlate="${dir}perlasm/arm-xlate.pl" and -f $xlate) or
16 die "can't locate arm-xlate.pl";
18 open OUT,"| \"$^X\" $xlate $flavour $output";
25 #if defined(__thumb2__) && !defined(__APPLE__)
34 .global OPENSSL_atomic_add
35 .type OPENSSL_atomic_add,%function
51 add r6,r3,r2 @ &spinlock
53 .Lspin: bl sched_yield
62 str r0,[r6] @ release spinlock
66 .word 0xe12fff1e @ bx lr
68 .size OPENSSL_atomic_add,.-OPENSSL_atomic_add
70 .global OPENSSL_cleanse
71 .type OPENSSL_cleanse,%function
105 .word 0xe12fff1e @ bx lr
107 .size OPENSSL_cleanse,.-OPENSSL_cleanse
109 .global CRYPTO_memcmp
110 .type CRYPTO_memcmp,%function
135 .word 0xe12fff1e @ bx lr
137 .size CRYPTO_memcmp,.-CRYPTO_memcmp
139 #if __ARM_MAX_ARCH__>=7
144 .global _armv7_neon_probe
145 .type _armv7_neon_probe,%function
149 .size _armv7_neon_probe,.-_armv7_neon_probe
152 .type _armv7_tick,%function
155 mrrc p15,0,r0,r1,c14 @ CNTPCT
157 mrrc p15,1,r0,r1,c14 @ CNTVCT
160 .size _armv7_tick,.-_armv7_tick
162 .global _armv8_aes_probe
163 .type _armv8_aes_probe,%function
165 #if defined(__thumb2__) && !defined(__APPLE__)
166 .byte 0xb0,0xff,0x00,0x03 @ aese.8 q0,q0
168 .byte 0x00,0x03,0xb0,0xf3 @ aese.8 q0,q0
171 .size _armv8_aes_probe,.-_armv8_aes_probe
173 .global _armv8_sha1_probe
174 .type _armv8_sha1_probe,%function
176 #if defined(__thumb2__) && !defined(__APPLE__)
177 .byte 0x00,0xef,0x40,0x0c @ sha1c.32 q0,q0,q0
179 .byte 0x40,0x0c,0x00,0xf2 @ sha1c.32 q0,q0,q0
182 .size _armv8_sha1_probe,.-_armv8_sha1_probe
184 .global _armv8_sha256_probe
185 .type _armv8_sha256_probe,%function
187 #if defined(__thumb2__) && !defined(__APPLE__)
188 .byte 0x00,0xff,0x40,0x0c @ sha256h.32 q0,q0,q0
190 .byte 0x40,0x0c,0x00,0xf3 @ sha256h.32 q0,q0,q0
193 .size _armv8_sha256_probe,.-_armv8_sha256_probe
194 .global _armv8_pmull_probe
195 .type _armv8_pmull_probe,%function
197 #if defined(__thumb2__) && !defined(__APPLE__)
198 .byte 0xa0,0xef,0x00,0x0e @ vmull.p64 q0,d0,d0
200 .byte 0x00,0x0e,0xa0,0xf2 @ vmull.p64 q0,d0,d0
203 .size _armv8_pmull_probe,.-_armv8_pmull_probe
206 .global OPENSSL_wipe_cpu
207 .type OPENSSL_wipe_cpu,%function
209 #if __ARM_MAX_ARCH__>=7
210 ldr r0,.LOPENSSL_armcap
211 adr r1,.LOPENSSL_armcap
220 #if __ARM_MAX_ARCH__>=7
243 .word 0xe12fff1e @ bx lr
245 .size OPENSSL_wipe_cpu,.-OPENSSL_wipe_cpu
247 .global OPENSSL_instrument_bus
248 .type OPENSSL_instrument_bus,%function
249 OPENSSL_instrument_bus:
256 .word 0xe12fff1e @ bx lr
258 .size OPENSSL_instrument_bus,.-OPENSSL_instrument_bus
260 .global OPENSSL_instrument_bus2
261 .type OPENSSL_instrument_bus2,%function
262 OPENSSL_instrument_bus2:
269 .word 0xe12fff1e @ bx lr
271 .size OPENSSL_instrument_bus2,.-OPENSSL_instrument_bus2
274 #if __ARM_MAX_ARCH__>=7
276 .word OPENSSL_armcap_P-.
282 .word atomic_add_spinlock-.Lspinlock
291 .comm OPENSSL_armcap_P,4,4
292 .hidden OPENSSL_armcap_P
296 close STDOUT or die "error closing STDOUT: $!";