1 /* SPDX-License-Identifier: GPL-2.0 */ 2 3 #ifndef _ASM_POWERPC_BOOK3S_64_KEXEC_H_ 4 #define _ASM_POWERPC_BOOK3S_64_KEXEC_H_ 5 6 7 #define reset_sprs reset_sprs 8 static inline void reset_sprs(void) 9 { 10 if (cpu_has_feature(CPU_FTR_ARCH_206)) { 11 mtspr(SPRN_AMR, 0); 12 mtspr(SPRN_UAMOR, 0); 13 } 14 15 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { 16 mtspr(SPRN_IAMR, 0); 17 } 18 19 /* Do we need isync()? We are going via a kexec reset */ 20 isync(); 21 } 22 23 #endif 24