diff options
-rw-r--r-- | arch/arm64/mm/proc-macros.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm64/mm/proc-macros.S b/arch/arm64/mm/proc-macros.S index 8957b822010b..005d29e2977d 100644 --- a/arch/arm64/mm/proc-macros.S +++ b/arch/arm64/mm/proc-macros.S | |||
@@ -38,8 +38,7 @@ | |||
38 | */ | 38 | */ |
39 | .macro dcache_line_size, reg, tmp | 39 | .macro dcache_line_size, reg, tmp |
40 | mrs \tmp, ctr_el0 // read CTR | 40 | mrs \tmp, ctr_el0 // read CTR |
41 | lsr \tmp, \tmp, #16 | 41 | ubfm \tmp, \tmp, #16, #19 // cache line size encoding |
42 | and \tmp, \tmp, #0xf // cache line size encoding | ||
43 | mov \reg, #4 // bytes per word | 42 | mov \reg, #4 // bytes per word |
44 | lsl \reg, \reg, \tmp // actual cache line size | 43 | lsl \reg, \reg, \tmp // actual cache line size |
45 | .endm | 44 | .endm |