aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel
diff options
context:
space:
mode:
authorOlivier DANET <odanet@caramail.com>2013-07-10 13:56:10 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-28 16:18:32 -0700
commit00c218981b362e8dbfd624ebf0c874bb1bc9df04 (patch)
tree6c7a62412333453c5400fad82a822fb089180080 /arch/sparc/kernel
parent795c3e68abaa0daa388ff2eb8bc577db955d8f7e (diff)
downloadkernel_samsung_tuna-00c218981b362e8dbfd624ebf0c874bb1bc9df04.zip
kernel_samsung_tuna-00c218981b362e8dbfd624ebf0c874bb1bc9df04.tar.gz
kernel_samsung_tuna-00c218981b362e8dbfd624ebf0c874bb1bc9df04.tar.bz2
sparc32: vm_area_struct access for old Sun SPARCs.
upstream commit 961246b4ed8da3bcf4ee1eb9147f341013553e3c 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r--arch/sparc/kernel/asm-offsets.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/kernel/asm-offsets.c b/arch/sparc/kernel/asm-offsets.c
index 68f7e11..ce48203 100644
--- a/arch/sparc/kernel/asm-offsets.c
+++ b/arch/sparc/kernel/asm-offsets.c
@@ -34,6 +34,8 @@ int foo(void)
DEFINE(AOFF_task_thread, offsetof(struct task_struct, thread));
BLANK();
DEFINE(AOFF_mm_context, offsetof(struct mm_struct, context));
+ BLANK();
+ DEFINE(VMA_VM_MM, offsetof(struct vm_area_struct, vm_mm));
/* DEFINE(NUM_USER_SEGMENTS, TASK_SIZE>>28); */
return 0;