aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/powernv
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-02-04 00:04:52 -0500
committerAnton Blanchard <anton@samba.org>2014-04-22 20:05:17 -0400
commitad0289e4acf2bd6989e745cff3b4f0781a919e30 (patch)
tree2027687114b62c2ac5fc201897e67795ea7e964b /arch/powerpc/platforms/powernv
parentb1576fec7f4dd4657694fefc97fda4cf28ec68e9 (diff)
powerpc: Remove superflous function descriptors in assembly only code
We have a number of places where we load the text address of a local function and indirectly branch to it in assembly. Since it is an indirect branch binutils will not know to use the function text address, so that trick wont work. There is no need for these functions to have a function descriptor so we can replace it with a label and remove the dot symbol. Signed-off-by: Anton Blanchard <anton@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/powernv')
-rw-r--r--arch/powerpc/platforms/powernv/opal-wrappers.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-wrappers.S b/arch/powerpc/platforms/powernv/opal-wrappers.S
index f531ffe35b3e..b5ebc545a373 100644
--- a/arch/powerpc/platforms/powernv/opal-wrappers.S
+++ b/arch/powerpc/platforms/powernv/opal-wrappers.S
@@ -32,7 +32,7 @@
32 std r12,PACASAVEDMSR(r13); \ 32 std r12,PACASAVEDMSR(r13); \
33 andc r12,r12,r0; \ 33 andc r12,r12,r0; \
34 mtmsrd r12,1; \ 34 mtmsrd r12,1; \
35 LOAD_REG_ADDR(r0,.opal_return); \ 35 LOAD_REG_ADDR(r0,opal_return); \
36 mtlr r0; \ 36 mtlr r0; \
37 li r0,MSR_DR|MSR_IR|MSR_LE;\ 37 li r0,MSR_DR|MSR_IR|MSR_LE;\
38 andc r12,r12,r0; \ 38 andc r12,r12,r0; \
@@ -44,7 +44,7 @@
44 mtspr SPRN_HSRR0,r12; \ 44 mtspr SPRN_HSRR0,r12; \
45 hrfid 45 hrfid
46 46
47_STATIC(opal_return) 47opal_return:
48 /* 48 /*
49 * Fixup endian on OPAL return... we should be able to simplify 49 * Fixup endian on OPAL return... we should be able to simplify
50 * this by instead converting the below trampoline to a set of 50 * this by instead converting the below trampoline to a set of