[PATCH] FRV: Introduce asm-offsets for FRV arch
Introduce the use of asm-offsets into the FRV architecture. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
6d8c4e3b01
commit
84e8cd6dbc
@@ -26,6 +26,7 @@
|
||||
#include <linux/reboot.h>
|
||||
#include <linux/interrupt.h>
|
||||
|
||||
#include <asm/asm-offsets.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <asm/system.h>
|
||||
#include <asm/setup.h>
|
||||
@@ -207,7 +208,7 @@ int copy_thread(int nr, unsigned long clone_flags,
|
||||
|
||||
regs0 = __kernel_frame0_ptr;
|
||||
childregs0 = (struct pt_regs *)
|
||||
(task_stack_page(p) + THREAD_SIZE - USER_CONTEXT_SIZE);
|
||||
(task_stack_page(p) + THREAD_SIZE - FRV_FRAME0_SIZE);
|
||||
childregs = childregs0;
|
||||
|
||||
/* set up the userspace frame (the only place that the USP is stored) */
|
||||
|
Reference in New Issue
Block a user