diff options
author | David S. Miller | 2014-05-04 07:52:50 +0200 |
---|---|---|
committer | David S. Miller | 2014-05-04 07:52:50 +0200 |
commit | 0eef331a3d0ee970dcbebd1bd5fcb57ca33ece01 (patch) | |
tree | 8db40eb8e8fc2aff33c6f673aebfcf848b268acf /arch/sparc/kernel | |
parent | sparc64: Fix range check in kern_addr_valid(). (diff) | |
download | kernel-qcow2-linux-0eef331a3d0ee970dcbebd1bd5fcb57ca33ece01.tar.gz kernel-qcow2-linux-0eef331a3d0ee970dcbebd1bd5fcb57ca33ece01.tar.xz kernel-qcow2-linux-0eef331a3d0ee970dcbebd1bd5fcb57ca33ece01.zip |
sparc64: Use 'ILOG2_4MB' instead of constant '22'.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r-- | arch/sparc/kernel/head_64.S | 4 | ||||
-rw-r--r-- | arch/sparc/kernel/ktlb.S | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc/kernel/head_64.S b/arch/sparc/kernel/head_64.S index 26b706a1867d..452f04fe8da6 100644 --- a/arch/sparc/kernel/head_64.S +++ b/arch/sparc/kernel/head_64.S @@ -282,8 +282,8 @@ sun4v_chip_type: stx %l2, [%l4 + 0x0] ldx [%sp + 2047 + 128 + 0x50], %l3 ! physaddr low /* 4MB align */ - srlx %l3, 22, %l3 - sllx %l3, 22, %l3 + srlx %l3, ILOG2_4MB, %l3 + sllx %l3, ILOG2_4MB, %l3 stx %l3, [%l4 + 0x8] /* Leave service as-is, "call-method" */ diff --git a/arch/sparc/kernel/ktlb.S b/arch/sparc/kernel/ktlb.S index 542e96ac4d39..605d49204580 100644 --- a/arch/sparc/kernel/ktlb.S +++ b/arch/sparc/kernel/ktlb.S @@ -277,7 +277,7 @@ kvmap_dtlb_load: #ifdef CONFIG_SPARSEMEM_VMEMMAP kvmap_vmemmap: sub %g4, %g5, %g5 - srlx %g5, 22, %g5 + srlx %g5, ILOG2_4MB, %g5 sethi %hi(vmemmap_table), %g1 sllx %g5, 3, %g5 or %g1, %lo(vmemmap_table), %g1 |