aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/include
diff options
context:
space:
mode:
authorDaniel Schwierzeck2015-12-19 20:20:45 +0100
committerDaniel Schwierzeck2016-01-16 21:06:45 +0100
commit113492988b0f471f9fe4f8f987a52c58a782d96f (patch)
tree1c1f05c1719b9ae07b846a0096136e3ab941eafb /arch/mips/include
parent1a96780016beba15470ce34689dc951761db2d2a (diff)
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>
Diffstat (limited to 'arch/mips/include')
-rw-r--r--arch/mips/include/asm/asm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/include/asm/asm.h b/arch/mips/include/asm/asm.h
index 933ccb1b786..855f70708ec 100644
--- a/arch/mips/include/asm/asm.h
+++ b/arch/mips/include/asm/asm.h
@@ -45,6 +45,12 @@
#define CPLOAD(register)
#endif
+#define ENTRY(symbol) \
+ .globl symbol; \
+ .type symbol, @function; \
+ .ent symbol, 0; \
+symbol:
+
/*
* LEAF - declare leaf routine
*/