mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
introduce generic sys_sigaltstack(), switch x86 and um to it
Conditional on CONFIG_GENERIC_SIGALTSTACK; architectures that do not select it are completely unaffected Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
9b064fc3f9
commit
6bf9adfc90
14 changed files with 19 additions and 21 deletions
|
|
@ -3102,6 +3102,12 @@ do_sigaltstack (const stack_t __user *uss, stack_t __user *uoss, unsigned long s
|
|||
out:
|
||||
return error;
|
||||
}
|
||||
#ifdef CONFIG_GENERIC_SIGALTSTACK
|
||||
SYSCALL_DEFINE2(sigaltstack,const stack_t __user *,uss, stack_t __user *,uoss)
|
||||
{
|
||||
return do_sigaltstack(uss, uoss, current_user_stack_pointer());
|
||||
}
|
||||
#endif
|
||||
|
||||
int restore_altstack(const stack_t __user *uss)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue