summaryrefslogtreecommitdiffstats
path: root/crypto/sha/asm
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2010-09-13 13:28:52 +0000
committerAndy Polyakov <appro@openssl.org>2010-09-13 13:28:52 +0000
commitf8927c89d00f42c4aee239cd8224fc4c7a84bd99 (patch)
treecec514fc2a63a4a7f900c11b8ded2027a66e092e /crypto/sha/asm
parent3739a772e99fcb0abf2aeb4b0890fa851fc83830 (diff)
Alpha assembler pack: adapt for Linux.
PR: 2335
Diffstat (limited to 'crypto/sha/asm')
-rw-r--r--crypto/sha/asm/sha1-alpha.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/sha/asm/sha1-alpha.pl b/crypto/sha/asm/sha1-alpha.pl
index 9d1e9435ac..6c4b9251fd 100644
--- a/crypto/sha/asm/sha1-alpha.pl
+++ b/crypto/sha/asm/sha1-alpha.pl
@@ -225,8 +225,12 @@ ___
}
$code=<<___;
+#ifdef __linux__
+#include <asm/regdef.h>
+#else
#include <asm.h>
#include <regdef.h>
+#endif
.text
@@ -310,6 +314,8 @@ $code.=<<___;
lda sp,64(sp)
ret (ra)
.end sha1_block_data_order
+.ascii "SHA1 block transform for Alpha, CRYPTOGAMS by <appro\@openssl.org>"
+.align 2
___
$output=shift and open STDOUT,">$output";
print $code;