1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * This file contains low-level assembler routines for managing
4 * the PowerPC 603 tlb invalidation.
8 #include <asm/ppc_asm.h>
9 #include <asm/asm-offsets.h>
12 * Flush an entry from the TLB
19 rlwinm r0,r10,0,17,15 /* clear bit 16 (MSR_EE) */
20 rlwinm r0,r0,0,28,26 /* clear DR */
23 lis r9,mmu_hash_lock@h
24 ori r9,r9,mmu_hash_lock@l
36 stw r0,0(r9) /* clear mmu_hash_lock */
40 _ASM_NOKPROBE_SYMBOL(_tlbie)
41 #endif /* CONFIG_SMP */
44 * Flush the entire TLB. 603/603e only
47 #if defined(CONFIG_SMP)
51 rlwinm r0,r10,0,17,15 /* clear bit 16 (MSR_EE) */
52 rlwinm r0,r0,0,28,26 /* clear DR */
55 lis r9,mmu_hash_lock@h
56 ori r9,r9,mmu_hash_lock@l
63 #endif /* CONFIG_SMP */
75 stw r0,0(r9) /* clear mmu_hash_lock */
78 #endif /* CONFIG_SMP */
80 _ASM_NOKPROBE_SYMBOL(_tlbia)