Message ID | 20180130103041.GA29693@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h index f311a1ed34d0..f4f3350f697e 100644 --- a/arch/arm64/include/asm/assembler.h +++ b/arch/arm64/include/asm/assembler.h @@ -539,9 +539,9 @@ alternative_endif .macro pte_to_phys, phys, pte #ifdef CONFIG_ARM64_PA_BITS_52 - ror \phys, \pte, #16 - bfi \phys, \phys, #(16 + 12), #32 - lsr \phys, \phys, #12 + ubfiz \phys, \pte, #(48 - 16 - 12), #16 + bfxil \phys, \pte, #16, #32 + lsl \phys, \phys, #16 #else and \phys, \pte, #PTE_ADDR_MASK #endif