diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2017-06-24 14:17:23 -0500 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-06-26 14:28:58 +1000 |
commit | c09788ff6a5f0e7170c569d55d85e88e25529034 (patch) | |
tree | fa6dd9da99d3a499f433a93a85de4e5a4db2bba4 /asm | |
parent | 7fab123bff59c44650b4b9c6a45c4884ed7ea2bd (diff) | |
download | skiboot-c09788ff6a5f0e7170c569d55d85e88e25529034.zip skiboot-c09788ff6a5f0e7170c569d55d85e88e25529034.tar.gz skiboot-c09788ff6a5f0e7170c569d55d85e88e25529034.tar.bz2 |
Move cleanup_tlb from head.S to misc.S
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'asm')
-rw-r--r-- | asm/head.S | 13 | ||||
-rw-r--r-- | asm/misc.S | 13 |
2 files changed, 13 insertions, 13 deletions
@@ -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 */ @@ -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 |