Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torvalds/linux.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2017-12-10 08:22:37 +0300
committerMax Filippov <jcmvbkbc@gmail.com>2017-12-11 01:48:54 +0300
commit5cf97ebd8b40e2b1791136fc1476d17365864b18 (patch)
tree28f7123d675169d6e360832b9c1e879845219162 /arch/xtensa/lib/memset.S
parentfbb871e220672a8e9e4e7870da5b206fe05904b2 (diff)
xtensa: clean up functions in assembly code
Use ENTRY and ENDPROC throughout arch/xtensa/lib assembly sources. Introduce asm/linkage.h and define xtensa-specific __ALIGN macro there. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/lib/memset.S')
-rw-r--r--arch/xtensa/lib/memset.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/xtensa/lib/memset.S b/arch/xtensa/lib/memset.S
index 7a724edaf4f1..a6cd04ba966f 100644
--- a/arch/xtensa/lib/memset.S
+++ b/arch/xtensa/lib/memset.S
@@ -11,6 +11,7 @@
* Copyright (C) 2002 Tensilica Inc.
*/
+#include <linux/linkage.h>
#include <variant/core.h>
#include <asm/asmmacro.h>
@@ -30,10 +31,8 @@
*/
.text
-.align 4
-.global memset
-.type memset,@function
-memset:
+ENTRY(memset)
+
entry sp, 16 # minimal stack frame
# a2/ dst, a3/ c, a4/ length
extui a3, a3, 0, 8 # mask to just 8 bits
@@ -141,6 +140,7 @@ EX(10f) s8i a3, a5, 0
.Lbytesetdone:
retw
+ENDPROC(memset)
.section .fixup, "ax"
.align 4