signal.c (651a88798412e216f337d70181127e847f00a4b7) signal.c (ecaa054fc4c65ad337ec57aef2c6b041e0ef8f91)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Signal Handling for ARC
4 *
5 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
6 *
7 * vineetg: Jan 2010 (Restarting of timer related syscalls)
8 *

--- 305 unchanged lines hidden (view full) ---

314
315 /* #1 arg to the user Signal handler */
316 regs->r0 = ksig->sig;
317
318 /* setup PC of user space signal handler */
319 regs->ret = (unsigned long)ksig->ka.sa.sa_handler;
320
321 /*
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Signal Handling for ARC
4 *
5 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
6 *
7 * vineetg: Jan 2010 (Restarting of timer related syscalls)
8 *

--- 305 unchanged lines hidden (view full) ---

314
315 /* #1 arg to the user Signal handler */
316 regs->r0 = ksig->sig;
317
318 /* setup PC of user space signal handler */
319 regs->ret = (unsigned long)ksig->ka.sa.sa_handler;
320
321 /*
322 * handler returns using sigreturn stub provided already by userpsace
322 * handler returns using sigreturn stub provided already by userspace
323 * If not, nuke the process right away
324 */
325 if(!(ksig->ka.sa.sa_flags & SA_RESTORER))
326 return 1;
327
328 regs->blink = (unsigned long)ksig->ka.sa.sa_restorer;
329
330 /* User Stack for signal handler will be above the frame just carved */

--- 112 unchanged lines hidden ---
323 * If not, nuke the process right away
324 */
325 if(!(ksig->ka.sa.sa_flags & SA_RESTORER))
326 return 1;
327
328 regs->blink = (unsigned long)ksig->ka.sa.sa_restorer;
329
330 /* User Stack for signal handler will be above the frame just carved */

--- 112 unchanged lines hidden ---