1/*
2 * Copyright (C) 2017-2022 Synopsys, Inc. (www.synopsys.com)
3 *
4 * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
5 */
6
7#include <sysdep.h>
8
9/*
10 * Default sigretrun stub if user doesn't specify SA_RESTORER.
11 */
12
13.section .text
14.align 4
15.global __default_rt_sa_restorer
16.type __default_rt_sa_restorer, @function
17
18; This "nop" is needed here, because debugger would assume that this function
19; called the signal handler, therefore it cannot start on the "mov"
20; instruction, at which execution will jump to.
21	nop
22__default_rt_sa_restorer:
23	mov r8, __NR_rt_sigreturn
24	ARC_TRAP_INSN
25	j_s     [blink]
26
27