summaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/asm.h
diff options
context:
space:
mode:
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2015-12-19 20:20:45 +0100
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2016-01-16 21:06:45 +0100
commit113492988b0f471f9fe4f8f987a52c58a782d96f (patch)
tree1c1f05c1719b9ae07b846a0096136e3ab941eafb /arch/mips/include/asm/asm.h
parent1a96780016beba15470ce34689dc951761db2d2a (diff)
downloadtalos-obmc-uboot-113492988b0f471f9fe4f8f987a52c58a782d96f.tar.gz
talos-obmc-uboot-113492988b0f471f9fe4f8f987a52c58a782d96f.zip
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/asm/asm.h')
-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 933ccb1b78..855f70708e 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
*/
OpenPOWER on IntegriCloud