summaryrefslogtreecommitdiffstats
path: root/crypto/modes
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/modes
parent3739a772e99fcb0abf2aeb4b0890fa851fc83830 (diff)
Alpha assembler pack: adapt for Linux.
PR: 2335
Diffstat (limited to 'crypto/modes')
-rw-r--r--crypto/modes/asm/ghash-alpha.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/modes/asm/ghash-alpha.pl b/crypto/modes/asm/ghash-alpha.pl
index be3c7ef5c0..6358b2750f 100644
--- a/crypto/modes/asm/ghash-alpha.pl
+++ b/crypto/modes/asm/ghash-alpha.pl
@@ -245,8 +245,12 @@ ___
}}
$code=<<___;
+#ifdef __linux__
+#include <asm/regdef.h>
+#else
#include <asm.h>
#include <regdef.h>
+#endif
.text
@@ -437,7 +441,7 @@ rem_4bit:
.quad 0x7080<<48, 0x6CA0<<48, 0x48C0<<48, 0x54E0<<48
.quad 0xE100<<48, 0xFD20<<48, 0xD940<<48, 0xC560<<48
.quad 0x9180<<48, 0x8DA0<<48, 0xA9C0<<48, 0xB5E0<<48
-.asciiz "GHASH for Alpha, CRYPTOGAMS by <appro\@openssl.org>"
+.ascii "GHASH for Alpha, CRYPTOGAMS by <appro\@openssl.org>"
.align 4
___