git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
arch
/
sh64
/
kernel
/
signal.c
diff --git
a/arch/sh64/kernel/signal.c
b/arch/sh64/kernel/signal.c
index
376b899
..
608f679
100644
(file)
--- a/
arch/sh64/kernel/signal.c
+++ b/
arch/sh64/kernel/signal.c
@@
-186,7
+186,7
@@
restore_sigcontext_fpu(struct pt_regs *regs, struct sigcontext __user *sc)
int fpvalid;
err |= __get_user (fpvalid, &sc->sc_fpvalid);
int fpvalid;
err |= __get_user (fpvalid, &sc->sc_fpvalid);
- c
urrent->used_math = fpvalid
;
+ c
onditional_used_math(fpvalid)
;
if (! fpvalid)
return err;
if (! fpvalid)
return err;
@@
-207,7
+207,7
@@
setup_sigcontext_fpu(struct pt_regs *regs, struct sigcontext __user *sc)
int err = 0;
int fpvalid;
int err = 0;
int fpvalid;
- fpvalid =
current->used_math
;
+ fpvalid =
!!used_math()
;
err |= __put_user(fpvalid, &sc->sc_fpvalid);
if (! fpvalid)
return err;
err |= __put_user(fpvalid, &sc->sc_fpvalid);
if (! fpvalid)
return err;
@@
-222,7
+222,7
@@
setup_sigcontext_fpu(struct pt_regs *regs, struct sigcontext __user *sc)
err |= __copy_to_user(&sc->sc_fpregs[0], ¤t->thread.fpu.hard,
(sizeof(long long) * 32) + (sizeof(int) * 1));
err |= __copy_to_user(&sc->sc_fpregs[0], ¤t->thread.fpu.hard,
(sizeof(long long) * 32) + (sizeof(int) * 1));
- c
urrent->used_math = 0
;
+ c
lear_used_math()
;
return err;
}
return err;
}
@@
-520,9
+520,7
@@
static void setup_frame(int sig, struct k_sigaction *ka,
return;
give_sigsegv:
return;
give_sigsegv:
- if (sig == SIGSEGV)
- ka->sa.sa_handler = SIG_DFL;
- force_sig(SIGSEGV, current);
+ force_sigsegv(sig, current);
}
static void setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
}
static void setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
@@
-628,9
+626,7
@@
static void setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
return;
give_sigsegv:
return;
give_sigsegv:
- if (sig == SIGSEGV)
- ka->sa.sa_handler = SIG_DFL;
- force_sig(SIGSEGV, current);
+ force_sigsegv(sig, current);
}
/*
}
/*
@@
-705,10
+701,8
@@
int do_signal(struct pt_regs *regs, sigset_t *oldset)
if (!user_mode(regs))
return 1;
if (!user_mode(regs))
return 1;
- if (current->flags & PF_FREEZE) {
- refrigerator(0);
+ if (try_to_freeze(0))
goto no_signal;
goto no_signal;
- }
if (!oldset)
oldset = ¤t->blocked;
if (!oldset)
oldset = ¤t->blocked;