aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/mm/tsunami.S
diff options
context:
space:
mode:
authorOlivier DANET <odanet@caramail.com>2013-07-10 13:56:10 -0700
committerDavid S. Miller <davem@davemloft.net>2013-07-10 13:56:10 -0700
commit961246b4ed8da3bcf4ee1eb9147f341013553e3c (patch)
tree221ac718b5e628c7fcac57e78482810219c64baa /arch/sparc/mm/tsunami.S
parentsunvnet: vnet_port_remove must call unregister_netdev (diff)
downloadlinux-dev-961246b4ed8da3bcf4ee1eb9147f341013553e3c.tar.xz
linux-dev-961246b4ed8da3bcf4ee1eb9147f341013553e3c.zip
[PATCH] sparc32: vm_area_struct access for old Sun SPARCs.
Commit e4c6bfd2d79d063017ab19a18915f0bc759f32d9 ("mm: rearrange vm_area_struct for fewer cache misses") changed the layout of the vm_area_struct structure, it broke several SPARC32 assembly routines which used numerical constants for accessing the vm_mm field. This patch defines the VMA_VM_MM constant to replace the immediate values. Signed-off-by: Olivier DANET <odanet@caramail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm/tsunami.S')
-rw-r--r--arch/sparc/mm/tsunami.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc/mm/tsunami.S b/arch/sparc/mm/tsunami.S
index 4e55e8f76648..bf10a345fa8b 100644
--- a/arch/sparc/mm/tsunami.S
+++ b/arch/sparc/mm/tsunami.S
@@ -24,7 +24,7 @@
/* Sliiick... */
tsunami_flush_cache_page:
tsunami_flush_cache_range:
- ld [%o0 + 0x0], %o0 /* XXX vma->vm_mm, GROSS XXX */
+ ld [%o0 + VMA_VM_MM], %o0
tsunami_flush_cache_mm:
ld [%o0 + AOFF_mm_context], %g2
cmp %g2, -1
@@ -46,7 +46,7 @@ tsunami_flush_sig_insns:
/* More slick stuff... */
tsunami_flush_tlb_range:
- ld [%o0 + 0x00], %o0 /* XXX vma->vm_mm GROSS XXX */
+ ld [%o0 + VMA_VM_MM], %o0
tsunami_flush_tlb_mm:
ld [%o0 + AOFF_mm_context], %g2
cmp %g2, -1
@@ -65,7 +65,7 @@ tsunami_flush_tlb_out:
/* This one can be done in a fine grained manner... */
tsunami_flush_tlb_page:
- ld [%o0 + 0x00], %o0 /* XXX vma->vm_mm GROSS XXX */
+ ld [%o0 + VMA_VM_MM], %o0
mov SRMMU_CTX_REG, %g1
ld [%o0 + AOFF_mm_context], %o3
andn %o1, (PAGE_SIZE - 1), %o1