Skip to content

Commit

Permalink
Move cleanup_tlb from head.S to misc.S
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ozbenh authored and stewartsmith committed Jun 26, 2017
1 parent 7fab123 commit c09788f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
13 changes: 0 additions & 13 deletions asm/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
13 changes: 13 additions & 0 deletions asm/misc.S
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c09788f

Please sign in to comment.