* [PATCH] powerpc/fsl: Fixed warning: orphan section `__btb_flush_fixup'
@ 2018-12-23 20:34 Diana Craciun
2019-01-02 11:31 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Diana Craciun @ 2018-12-23 20:34 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Diana Craciun
Fixed the following build warning:
powerpc-linux-gnu-ld: warning: orphan section `__btb_flush_fixup' from
`arch/powerpc/kernel/head_44x.o' being placed in section
`__btb_flush_fixup'.
Signed-off-by: Diana Craciun <diana.craciun@nxp.com>
---
arch/powerpc/kernel/head_booke.h | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/arch/powerpc/kernel/head_booke.h b/arch/powerpc/kernel/head_booke.h
index 15ac510..306e26c 100644
--- a/arch/powerpc/kernel/head_booke.h
+++ b/arch/powerpc/kernel/head_booke.h
@@ -32,6 +32,16 @@
*/
#define THREAD_NORMSAVE(offset) (THREAD_NORMSAVES + (offset * 4))
+#ifdef CONFIG_PPC_FSL_BOOK3E
+#define BOOKE_CLEAR_BTB(reg) \
+START_BTB_FLUSH_SECTION \
+ BTB_FLUSH(reg) \
+END_BTB_FLUSH_SECTION
+#else
+#define BOOKE_CLEAR_BTB(reg)
+#endif
+
+
#define NORMAL_EXCEPTION_PROLOG(intno) \
mtspr SPRN_SPRG_WSCRATCH0, r10; /* save one register */ \
mfspr r10, SPRN_SPRG_THREAD; \
@@ -43,9 +53,7 @@
andi. r11, r11, MSR_PR; /* check whether user or kernel */\
mr r11, r1; \
beq 1f; \
-START_BTB_FLUSH_SECTION \
- BTB_FLUSH(r11) \
-END_BTB_FLUSH_SECTION \
+ BOOKE_CLEAR_BTB(r11) \
/* if from user, start at top of this thread's kernel stack */ \
lwz r11, THREAD_INFO-THREAD(r10); \
ALLOC_STACK_FRAME(r11, THREAD_SIZE); \
@@ -131,9 +139,7 @@ END_BTB_FLUSH_SECTION \
stw r9,_CCR(r8); /* save CR on stack */\
mfspr r11,exc_level_srr1; /* check whether user or kernel */\
DO_KVM BOOKE_INTERRUPT_##intno exc_level_srr1; \
-START_BTB_FLUSH_SECTION \
- BTB_FLUSH(r10) \
-END_BTB_FLUSH_SECTION \
+ BOOKE_CLEAR_BTB(r10) \
andi. r11,r11,MSR_PR; \
mfspr r11,SPRN_SPRG_THREAD; /* if from user, start at top of */\
lwz r11,THREAD_INFO-THREAD(r11); /* this thread's kernel stack */\
--
2.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: powerpc/fsl: Fixed warning: orphan section `__btb_flush_fixup'
2018-12-23 20:34 [PATCH] powerpc/fsl: Fixed warning: orphan section `__btb_flush_fixup' Diana Craciun
@ 2019-01-02 11:31 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2019-01-02 11:31 UTC (permalink / raw)
To: Diana Craciun, linuxppc-dev; +Cc: Diana Craciun
On Sun, 2018-12-23 at 20:34:25 UTC, Diana Craciun wrote:
> Fixed the following build warning:
> powerpc-linux-gnu-ld: warning: orphan section `__btb_flush_fixup' from
> `arch/powerpc/kernel/head_44x.o' being placed in section
> `__btb_flush_fixup'.
>
> Signed-off-by: Diana Craciun <diana.craciun@nxp.com>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/039daac5526932ec731e4499613018
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-02 11:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-23 20:34 [PATCH] powerpc/fsl: Fixed warning: orphan section `__btb_flush_fixup' Diana Craciun
2019-01-02 11:31 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).