[Skiboot] [PATCH 19/24] Move cleanup_tlb from head.S to misc.S

Benjamin Herrenschmidt benh at kernel.crashing.org
Fri Jun 23 02:22:20 AEST 2017


Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
 asm/head.S | 13 -------------
 asm/misc.S | 13 +++++++++++++
 2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/asm/head.S b/asm/head.S
index 5c40813..01b726a 100644
--- a/asm/head.S
+++ b/asm/head.S
@@ -636,19 +636,6 @@ fast_reset_entry:
 	bl	fast_reboot_entry
 	b	.
 
-.global cleanup_tlb
-cleanup_tlb:
-	/* Clean the TLB */
-	li	%r3,512
-	mtctr	%r3
-	li	%r4,0xc00		/* IS field = 0b11 */
-	ptesync
-1:	tlbiel	%r4
-	addi	%r4,%r4,0x1000
-	bdnz	1b
-	ptesync
-	blr
-
 /* Functions to initialize replicated and shared SPRs to sane
  * values. This is called at boot and on soft-reset
  */
diff --git a/asm/misc.S b/asm/misc.S
index 1d9170b..8f8696f 100644
--- a/asm/misc.S
+++ b/asm/misc.S
@@ -50,3 +50,16 @@ _mcount:
 	mflr	%r4
 	b	__mcount_stack_check
 #endif
+
+	.global cleanup_tlb
+cleanup_tlb:
+	/* Clean the TLB */
+	li	%r3,512
+	mtctr	%r3
+	li	%r4,0xc00		/* IS field = 0b11 */
+	ptesync
+1:	tlbiel	%r4
+	addi	%r4,%r4,0x1000
+	bdnz	1b
+	ptesync
+	blr
-- 
2.9.4



More information about the Skiboot mailing list