aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel/head.S
diff options
context:
space:
mode:
authorChris Zankel <chris@zankel.net>2012-11-16 19:16:20 -0500
committerChris Zankel <chris@zankel.net>2012-12-19 00:10:20 -0500
commitd1538c4675f37d0eeb34bd38bec798b3b29a5a7e (patch)
tree4fa2d2c539825ad99f2f677cef686ea0051fbe9f /arch/xtensa/kernel/head.S
parentc0226e34a4293dee0e7c5787e1ebfc5ee8b44b7c (diff)
xtensa: provide proper assembler function boundaries with ENDPROC()
Use ENDPROC() to mark the end of assembler functions. Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/kernel/head.S')
-rw-r--r--arch/xtensa/kernel/head.S14
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/xtensa/kernel/head.S b/arch/xtensa/kernel/head.S
index bdc50788f35e..417998c02108 100644
--- a/arch/xtensa/kernel/head.S
+++ b/arch/xtensa/kernel/head.S
@@ -47,16 +47,19 @@
47 */ 47 */
48 48
49 __HEAD 49 __HEAD
50 .globl _start 50ENTRY(_start)
51_start: _j 2f 51
52 _j 2f
52 .align 4 53 .align 4
531: .word _startup 541: .word _startup
542: l32r a0, 1b 552: l32r a0, 1b
55 jx a0 56 jx a0
56 57
58ENDPROC(_start)
59
57 .section .init.text, "ax" 60 .section .init.text, "ax"
58 .align 4 61
59_startup: 62ENTRY(_startup)
60 63
61 /* Disable interrupts and exceptions. */ 64 /* Disable interrupts and exceptions. */
62 65
@@ -230,6 +233,7 @@ _startup:
230should_never_return: 233should_never_return:
231 j should_never_return 234 j should_never_return
232 235
236ENDPROC(_startup)
233 237
234/* 238/*
235 * BSS section 239 * BSS section
@@ -239,6 +243,8 @@ __PAGE_ALIGNED_BSS
239#ifdef CONFIG_MMU 243#ifdef CONFIG_MMU
240ENTRY(swapper_pg_dir) 244ENTRY(swapper_pg_dir)
241 .fill PAGE_SIZE, 1, 0 245 .fill PAGE_SIZE, 1, 0
246END(swapper_pg_dir)
242#endif 247#endif
243ENTRY(empty_zero_page) 248ENTRY(empty_zero_page)
244 .fill PAGE_SIZE, 1, 0 249 .fill PAGE_SIZE, 1, 0
250END(empty_zero_page)