signal.c (0aea30a07ec6b50de0fc5f5b2ec34a68ead86b61) signal.c (7383ee05314be58f8f9f018ee0ac53bef3808aea)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2009 Sunplus Core Technology Co., Ltd.
4 * Chen Liqin <liqin.chen@sunplusct.com>
5 * Lennox Wu <lennox.wu@sunplusct.com>
6 * Copyright (C) 2012 Regents of the University of California
7 */
8
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2009 Sunplus Core Technology Co., Ltd.
4 * Chen Liqin <liqin.chen@sunplusct.com>
5 * Lennox Wu <lennox.wu@sunplusct.com>
6 * Copyright (C) 2012 Regents of the University of California
7 */
8
9#include <linux/compat.h>
9#include <linux/signal.h>
10#include <linux/uaccess.h>
11#include <linux/syscalls.h>
12#include <linux/resume_user_mode.h>
13#include <linux/linkage.h>
14
15#include <asm/ucontext.h>
16#include <asm/vdso.h>
10#include <linux/signal.h>
11#include <linux/uaccess.h>
12#include <linux/syscalls.h>
13#include <linux/resume_user_mode.h>
14#include <linux/linkage.h>
15
16#include <asm/ucontext.h>
17#include <asm/vdso.h>
18#include <asm/signal32.h>
17#include <asm/switch_to.h>
18#include <asm/csr.h>
19
20extern u32 __user_rt_sigreturn[2];
21
22#define DEBUG_SIG 0
23
24struct rt_sigframe {

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

256 regs->epc -= 0x4;
257 break;
258 }
259 }
260
261 rseq_signal_deliver(ksig, regs);
262
263 /* Set up the stack frame */
19#include <asm/switch_to.h>
20#include <asm/csr.h>
21
22extern u32 __user_rt_sigreturn[2];
23
24#define DEBUG_SIG 0
25
26struct rt_sigframe {

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

258 regs->epc -= 0x4;
259 break;
260 }
261 }
262
263 rseq_signal_deliver(ksig, regs);
264
265 /* Set up the stack frame */
264 ret = setup_rt_frame(ksig, oldset, regs);
266 if (is_compat_task())
267 ret = compat_setup_rt_frame(ksig, oldset, regs);
268 else
269 ret = setup_rt_frame(ksig, oldset, regs);
265
266 signal_setup_done(ret, ksig, 0);
267}
268
269static void do_signal(struct pt_regs *regs)
270{
271 struct ksignal ksig;
272

--- 51 unchanged lines hidden ---
270
271 signal_setup_done(ret, ksig, 0);
272}
273
274static void do_signal(struct pt_regs *regs)
275{
276 struct ksignal ksig;
277

--- 51 unchanged lines hidden ---