diff options
author | Chris Zankel <chris@zankel.net> | 2012-11-16 19:16:20 -0500 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2012-12-19 00:10:20 -0500 |
commit | d1538c4675f37d0eeb34bd38bec798b3b29a5a7e (patch) | |
tree | 4fa2d2c539825ad99f2f677cef686ea0051fbe9f /arch/xtensa/kernel/head.S | |
parent | c0226e34a4293dee0e7c5787e1ebfc5ee8b44b7c (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.S | 14 |
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 | 50 | ENTRY(_start) |
51 | _start: _j 2f | 51 | |
52 | _j 2f | ||
52 | .align 4 | 53 | .align 4 |
53 | 1: .word _startup | 54 | 1: .word _startup |
54 | 2: l32r a0, 1b | 55 | 2: l32r a0, 1b |
55 | jx a0 | 56 | jx a0 |
56 | 57 | ||
58 | ENDPROC(_start) | ||
59 | |||
57 | .section .init.text, "ax" | 60 | .section .init.text, "ax" |
58 | .align 4 | 61 | |
59 | _startup: | 62 | ENTRY(_startup) |
60 | 63 | ||
61 | /* Disable interrupts and exceptions. */ | 64 | /* Disable interrupts and exceptions. */ |
62 | 65 | ||
@@ -230,6 +233,7 @@ _startup: | |||
230 | should_never_return: | 233 | should_never_return: |
231 | j should_never_return | 234 | j should_never_return |
232 | 235 | ||
236 | ENDPROC(_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 |
240 | ENTRY(swapper_pg_dir) | 244 | ENTRY(swapper_pg_dir) |
241 | .fill PAGE_SIZE, 1, 0 | 245 | .fill PAGE_SIZE, 1, 0 |
246 | END(swapper_pg_dir) | ||
242 | #endif | 247 | #endif |
243 | ENTRY(empty_zero_page) | 248 | ENTRY(empty_zero_page) |
244 | .fill PAGE_SIZE, 1, 0 | 249 | .fill PAGE_SIZE, 1, 0 |
250 | END(empty_zero_page) | ||