]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/crypto/aes-i586-asm_32.S
Merge tag 'for-linville-20130318' of git://github.com/kvalo/ath6kl
[karo-tx-linux.git] / arch / x86 / crypto / aes-i586-asm_32.S
index b949ec2f9af444e06377492d39b9db9960f3a626..2849dbc59e11738a3f7d2a9e063e6700eec7b694 100644 (file)
@@ -36,6 +36,7 @@
 .file "aes-i586-asm.S"
 .text
 
+#include <linux/linkage.h>
 #include <asm/asm-offsets.h>
 
 #define tlen 1024   // length of each of 4 'xor' arrays (256 32-bit words)
 // AES (Rijndael) Encryption Subroutine
 /* void aes_enc_blk(struct crypto_aes_ctx *ctx, u8 *out_blk, const u8 *in_blk) */
 
-.global  aes_enc_blk
-
 .extern  crypto_ft_tab
 .extern  crypto_fl_tab
 
-.align 4
-
-aes_enc_blk:
+ENTRY(aes_enc_blk)
        push    %ebp
        mov     ctx(%esp),%ebp
 
@@ -290,18 +287,15 @@ aes_enc_blk:
        mov     %r0,(%ebp)
        pop     %ebp
        ret
+ENDPROC(aes_enc_blk)
 
 // AES (Rijndael) Decryption Subroutine
 /* void aes_dec_blk(struct crypto_aes_ctx *ctx, u8 *out_blk, const u8 *in_blk) */
 
-.global  aes_dec_blk
-
 .extern  crypto_it_tab
 .extern  crypto_il_tab
 
-.align 4
-
-aes_dec_blk:
+ENTRY(aes_dec_blk)
        push    %ebp
        mov     ctx(%esp),%ebp
 
@@ -365,3 +359,4 @@ aes_dec_blk:
        mov     %r0,(%ebp)
        pop     %ebp
        ret
+ENDPROC(aes_dec_blk)