2 # Copyright 2008-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
10 open STDOUT
,">$output";
12 $0 =~ m/(.*[\/\\])[^\
/\\]+$/; $dir=$1;
15 require "uplink-common.pl";
17 local $V=8; # max number of args uplink functions may accept...
18 my $loc0 = "r".(32+$V);
21 .global OPENSSL_Uplink
#
22 .type OPENSSL_Uplink
#,\@function
25 for ($i=1;$i<=$N;$i++) {
30 { .mii
; .save ar
.pfs
,$loc0
31 alloc loc0
=ar
.pfs
,$V,3,2,0
34 addl loc2
=\
@ltoff(OPENSSL_UplinkTable
#),gp };;
36 { .mmi
; ld8 out0
=[loc2
]
38 { .mib
; add loc2
=8*$i,out0
39 br
.call
.sptk
.many b0
=OPENSSL_Uplink
# };;
40 { .mmi
; ld8 r31
=[loc2
];;
45 { .mib
; mov ar
.pfs
=loc0
53 .global OPENSSL_UplinkTable
#
54 OPENSSL_UplinkTable
: data8
$N // amount of following entries
56 for ($i=1;$i<=$N;$i++) { print " data8 \@fptr(lazy$i#)\n"; }
58 .size OPENSSL_UplinkTable
,.-OPENSSL_UplinkTable
#