diff options
author | Chung-Ling Tang <cltang@codesourcery.com> | 2015-03-12 13:34:31 +0800 |
---|---|---|
committer | Ley Foon Tan <lftan@altera.com> | 2015-03-12 13:35:06 +0800 |
commit | 92d5dd8cd6e2b211d32d8fbc6cf4b7470765a09f (patch) | |
tree | 4d99635aff3be4a2c0b19f0bbe3fe51e19bc1fff /arch/nios2/kernel | |
parent | 9eccca0843205f87c00404b663188b88eb248051 (diff) | |
download | talos-obmc-linux-92d5dd8cd6e2b211d32d8fbc6cf4b7470765a09f.tar.gz talos-obmc-linux-92d5dd8cd6e2b211d32d8fbc6cf4b7470765a09f.zip |
nios2: update pt_regs
Remove struct pt_regs from user header and use generic ucontext.h.
Signed-off-by: Chung-Ling Tang <cltang@codesourcery.com>
Acked-by: Ley Foon Tan <lftan@altera.com>
Diffstat (limited to 'arch/nios2/kernel')
-rw-r--r-- | arch/nios2/kernel/signal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/nios2/kernel/signal.c b/arch/nios2/kernel/signal.c index 2d0ea25be171..dda41e4fe707 100644 --- a/arch/nios2/kernel/signal.c +++ b/arch/nios2/kernel/signal.c @@ -39,7 +39,7 @@ static inline int rt_restore_ucontext(struct pt_regs *regs, struct ucontext *uc, int *pr2) { int temp; - greg_t *gregs = uc->uc_mcontext.gregs; + unsigned long *gregs = uc->uc_mcontext.gregs; int err; /* Always make any pending restarted system calls return -EINTR */ @@ -127,7 +127,7 @@ badframe: static inline int rt_setup_ucontext(struct ucontext *uc, struct pt_regs *regs) { struct switch_stack *sw = (struct switch_stack *)regs - 1; - greg_t *gregs = uc->uc_mcontext.gregs; + unsigned long *gregs = uc->uc_mcontext.gregs; int err = 0; err |= __put_user(MCONTEXT_VERSION, &uc->uc_mcontext.version); |