Commit 113492988b0f471f9fe4f8f987a52c58a782d96f
1 parent
1a96780016
Exists in
v2017.01-smarct4x
and in
30 other branches
MIPS: fix annotation of _start and relocate_code
Correctly annotate _start and relocate_code as functions to produce more readable disassembly code generated by objdump. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Showing 2 changed files with 11 additions and 7 deletions Side-by-side Diff
arch/mips/cpu/start.S
... | ... | @@ -56,9 +56,7 @@ |
56 | 56 | |
57 | 57 | .set noreorder |
58 | 58 | |
59 | - .globl _start | |
60 | - .text | |
61 | -_start: | |
59 | +ENTRY(_start) | |
62 | 60 | /* U-boot entry point */ |
63 | 61 | b reset |
64 | 62 | nop |
... | ... | @@ -192,6 +190,8 @@ |
192 | 190 | jr t9 |
193 | 191 | move ra, zero |
194 | 192 | |
193 | + END(_start) | |
194 | + | |
195 | 195 | /* |
196 | 196 | * void relocate_code (addr_sp, gd, addr_moni) |
197 | 197 | * |
... | ... | @@ -202,9 +202,7 @@ |
202 | 202 | * a1 = gd |
203 | 203 | * a2 = destination address |
204 | 204 | */ |
205 | - .globl relocate_code | |
206 | - .ent relocate_code | |
207 | -relocate_code: | |
205 | +ENTRY(relocate_code) | |
208 | 206 | move sp, a0 # set new stack pointer |
209 | 207 | move fp, sp |
210 | 208 | |
... | ... | @@ -317,5 +315,5 @@ |
317 | 315 | jr t9 |
318 | 316 | move ra, zero |
319 | 317 | |
320 | - .end relocate_code | |
318 | + END(relocate_code) |
arch/mips/include/asm/asm.h