[PATCH] sparc32: vm_area_struct access for old Sun SPARCs.
Commit e4c6bfd2d7
("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>
This commit is contained in:
parent
aabb9875d0
commit
961246b4ed
5 changed files with 18 additions and 16 deletions
|
@ -49,6 +49,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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue