2 # Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
4 # Licensed under the Apache License 2.0 (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
9 $output = pop and open STDOUT
,">$output";
11 $0 =~ m/(.*[\/\\])[^\
/\\]+$/; $dir=$1;
14 require "uplink-common.pl";
16 local $V=8; # max number of args uplink functions may accept...
17 my $loc0 = "r".(32+$V);
20 .global OPENSSL_Uplink
#
21 .type OPENSSL_Uplink
#,\@function
24 for ($i=1;$i<=$N;$i++) {
29 { .mii
; .save ar
.pfs
,$loc0
30 alloc loc0
=ar
.pfs
,$V,3,2,0
33 addl loc2
=\
@ltoff(OPENSSL_UplinkTable
#),gp };;
35 { .mmi
; ld8 out0
=[loc2
]
37 { .mib
; add loc2
=8*$i,out0
38 br
.call
.sptk
.many b0
=OPENSSL_Uplink
# };;
39 { .mmi
; ld8 r31
=[loc2
];;
44 { .mib
; mov ar
.pfs
=loc0
52 .global OPENSSL_UplinkTable
#
53 OPENSSL_UplinkTable
: data8
$N // amount of following entries
55 for ($i=1;$i<=$N;$i++) { print " data8 \@fptr(lazy$i#)\n"; }
57 .size OPENSSL_UplinkTable
,.-OPENSSL_UplinkTable
#