2 # Copyright 2015-2016 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__)
33 .global OPENSSL_atomic_add
34 .type OPENSSL_atomic_add,%function
50 add r6,r3,r2 @ &spinlock
52 .Lspin: bl sched_yield
61 str r0,[r6] @ release spinlock
65 .word 0xe12fff1e @ bx lr
67 .size OPENSSL_atomic_add,.-OPENSSL_atomic_add
69 .global OPENSSL_cleanse
70 .type OPENSSL_cleanse,%function
104 .word 0xe12fff1e @ bx lr
106 .size OPENSSL_cleanse,.-OPENSSL_cleanse
108 #if __ARM_MAX_ARCH__>=7
113 .global _armv7_neon_probe
114 .type _armv7_neon_probe,%function
118 .size _armv7_neon_probe,.-_armv7_neon_probe
121 .type _armv7_tick,%function
124 mrrc p15,0,r0,r1,c14 @ CNTPCT
126 mrrc p15,1,r0,r1,c14 @ CNTVCT
129 .size _armv7_tick,.-_armv7_tick
131 .global _armv8_aes_probe
132 .type _armv8_aes_probe,%function
134 #if defined(__thumb2__) && !defined(__APPLE__)
135 .byte 0xb0,0xff,0x00,0x03 @ aese.8 q0,q0
137 .byte 0x00,0x03,0xb0,0xf3 @ aese.8 q0,q0
140 .size _armv8_aes_probe,.-_armv8_aes_probe
142 .global _armv8_sha1_probe
143 .type _armv8_sha1_probe,%function
145 #if defined(__thumb2__) && !defined(__APPLE__)
146 .byte 0x00,0xef,0x40,0x0c @ sha1c.32 q0,q0,q0
148 .byte 0x40,0x0c,0x00,0xf2 @ sha1c.32 q0,q0,q0
151 .size _armv8_sha1_probe,.-_armv8_sha1_probe
153 .global _armv8_sha256_probe
154 .type _armv8_sha256_probe,%function
156 #if defined(__thumb2__) && !defined(__APPLE__)
157 .byte 0x00,0xff,0x40,0x0c @ sha256h.32 q0,q0,q0
159 .byte 0x40,0x0c,0x00,0xf3 @ sha256h.32 q0,q0,q0
162 .size _armv8_sha256_probe,.-_armv8_sha256_probe
163 .global _armv8_pmull_probe
164 .type _armv8_pmull_probe,%function
166 #if defined(__thumb2__) && !defined(__APPLE__)
167 .byte 0xa0,0xef,0x00,0x0e @ vmull.p64 q0,d0,d0
169 .byte 0x00,0x0e,0xa0,0xf2 @ vmull.p64 q0,d0,d0
172 .size _armv8_pmull_probe,.-_armv8_pmull_probe
175 .global OPENSSL_wipe_cpu
176 .type OPENSSL_wipe_cpu,%function
178 #if __ARM_MAX_ARCH__>=7
179 ldr r0,.LOPENSSL_armcap
180 adr r1,.LOPENSSL_armcap
189 #if __ARM_MAX_ARCH__>=7
212 .word 0xe12fff1e @ bx lr
214 .size OPENSSL_wipe_cpu,.-OPENSSL_wipe_cpu
216 .global OPENSSL_instrument_bus
217 .type OPENSSL_instrument_bus,%function
218 OPENSSL_instrument_bus:
225 .word 0xe12fff1e @ bx lr
227 .size OPENSSL_instrument_bus,.-OPENSSL_instrument_bus
229 .global OPENSSL_instrument_bus2
230 .type OPENSSL_instrument_bus2,%function
231 OPENSSL_instrument_bus2:
238 .word 0xe12fff1e @ bx lr
240 .size OPENSSL_instrument_bus2,.-OPENSSL_instrument_bus2
243 #if __ARM_MAX_ARCH__>=7
245 .word OPENSSL_armcap_P-.
251 .word atomic_add_spinlock-.Lspinlock
260 .comm OPENSSL_armcap_P,4,4
261 .hidden OPENSSL_armcap_P