signal.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625
  1. /*
  2. * Copyright (C) 2003 PathScale, Inc.
  3. * Copyright (C) 2003 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  4. * Licensed under the GPL
  5. */
  6. #include <linux/personality.h>
  7. #include <linux/ptrace.h>
  8. #include <linux/kernel.h>
  9. #include <asm/unistd.h>
  10. #include <asm/uaccess.h>
  11. #include <asm/ucontext.h>
  12. #include "frame_kern.h"
  13. #include "skas.h"
  14. #ifdef CONFIG_X86_32
  15. /*
  16. * FPU tag word conversions.
  17. */
  18. static inline unsigned short twd_i387_to_fxsr(unsigned short twd)
  19. {
  20. unsigned int tmp; /* to avoid 16 bit prefixes in the code */
  21. /* Transform each pair of bits into 01 (valid) or 00 (empty) */
  22. tmp = ~twd;
  23. tmp = (tmp | (tmp>>1)) & 0x5555; /* 0V0V0V0V0V0V0V0V */
  24. /* and move the valid bits to the lower byte. */
  25. tmp = (tmp | (tmp >> 1)) & 0x3333; /* 00VV00VV00VV00VV */
  26. tmp = (tmp | (tmp >> 2)) & 0x0f0f; /* 0000VVVV0000VVVV */
  27. tmp = (tmp | (tmp >> 4)) & 0x00ff; /* 00000000VVVVVVVV */
  28. return tmp;
  29. }
  30. static inline unsigned long twd_fxsr_to_i387(struct user_fxsr_struct *fxsave)
  31. {
  32. struct _fpxreg *st = NULL;
  33. unsigned long twd = (unsigned long) fxsave->twd;
  34. unsigned long tag;
  35. unsigned long ret = 0xffff0000;
  36. int i;
  37. #define FPREG_ADDR(f, n) ((char *)&(f)->st_space + (n) * 16)
  38. for (i = 0; i < 8; i++) {
  39. if (twd & 0x1) {
  40. st = (struct _fpxreg *) FPREG_ADDR(fxsave, i);
  41. switch (st->exponent & 0x7fff) {
  42. case 0x7fff:
  43. tag = 2; /* Special */
  44. break;
  45. case 0x0000:
  46. if ( !st->significand[0] &&
  47. !st->significand[1] &&
  48. !st->significand[2] &&
  49. !st->significand[3] ) {
  50. tag = 1; /* Zero */
  51. } else {
  52. tag = 2; /* Special */
  53. }
  54. break;
  55. default:
  56. if (st->significand[3] & 0x8000) {
  57. tag = 0; /* Valid */
  58. } else {
  59. tag = 2; /* Special */
  60. }
  61. break;
  62. }
  63. } else {
  64. tag = 3; /* Empty */
  65. }
  66. ret |= (tag << (2 * i));
  67. twd = twd >> 1;
  68. }
  69. return ret;
  70. }
  71. static int convert_fxsr_to_user(struct _fpstate __user *buf,
  72. struct user_fxsr_struct *fxsave)
  73. {
  74. unsigned long env[7];
  75. struct _fpreg __user *to;
  76. struct _fpxreg *from;
  77. int i;
  78. env[0] = (unsigned long)fxsave->cwd | 0xffff0000ul;
  79. env[1] = (unsigned long)fxsave->swd | 0xffff0000ul;
  80. env[2] = twd_fxsr_to_i387(fxsave);
  81. env[3] = fxsave->fip;
  82. env[4] = fxsave->fcs | ((unsigned long)fxsave->fop << 16);
  83. env[5] = fxsave->foo;
  84. env[6] = fxsave->fos;
  85. if (__copy_to_user(buf, env, 7 * sizeof(unsigned long)))
  86. return 1;
  87. to = &buf->_st[0];
  88. from = (struct _fpxreg *) &fxsave->st_space[0];
  89. for (i = 0; i < 8; i++, to++, from++) {
  90. unsigned long __user *t = (unsigned long __user *)to;
  91. unsigned long *f = (unsigned long *)from;
  92. if (__put_user(*f, t) ||
  93. __put_user(*(f + 1), t + 1) ||
  94. __put_user(from->exponent, &to->exponent))
  95. return 1;
  96. }
  97. return 0;
  98. }
  99. static int convert_fxsr_from_user(struct user_fxsr_struct *fxsave,
  100. struct _fpstate __user *buf)
  101. {
  102. unsigned long env[7];
  103. struct _fpxreg *to;
  104. struct _fpreg __user *from;
  105. int i;
  106. if (copy_from_user( env, buf, 7 * sizeof(long)))
  107. return 1;
  108. fxsave->cwd = (unsigned short)(env[0] & 0xffff);
  109. fxsave->swd = (unsigned short)(env[1] & 0xffff);
  110. fxsave->twd = twd_i387_to_fxsr((unsigned short)(env[2] & 0xffff));
  111. fxsave->fip = env[3];
  112. fxsave->fop = (unsigned short)((env[4] & 0xffff0000ul) >> 16);
  113. fxsave->fcs = (env[4] & 0xffff);
  114. fxsave->foo = env[5];
  115. fxsave->fos = env[6];
  116. to = (struct _fpxreg *) &fxsave->st_space[0];
  117. from = &buf->_st[0];
  118. for (i = 0; i < 8; i++, to++, from++) {
  119. unsigned long *t = (unsigned long *)to;
  120. unsigned long __user *f = (unsigned long __user *)from;
  121. if (__get_user(*t, f) ||
  122. __get_user(*(t + 1), f + 1) ||
  123. __get_user(to->exponent, &from->exponent))
  124. return 1;
  125. }
  126. return 0;
  127. }
  128. extern int have_fpx_regs;
  129. #endif
  130. static int copy_sc_from_user(struct pt_regs *regs,
  131. struct sigcontext __user *from)
  132. {
  133. struct sigcontext sc;
  134. int err, pid;
  135. err = copy_from_user(&sc, from, sizeof(sc));
  136. if (err)
  137. return err;
  138. #define GETREG(regno, regname) regs->regs.gp[HOST_##regno] = sc.regname
  139. #ifdef CONFIG_X86_32
  140. GETREG(GS, gs);
  141. GETREG(FS, fs);
  142. GETREG(ES, es);
  143. GETREG(DS, ds);
  144. #endif
  145. GETREG(DI, di);
  146. GETREG(SI, si);
  147. GETREG(BP, bp);
  148. GETREG(SP, sp);
  149. GETREG(BX, bx);
  150. GETREG(DX, dx);
  151. GETREG(CX, cx);
  152. GETREG(AX, ax);
  153. GETREG(IP, ip);
  154. #ifdef CONFIG_X86_64
  155. GETREG(R8, r8);
  156. GETREG(R9, r9);
  157. GETREG(R10, r10);
  158. GETREG(R11, r11);
  159. GETREG(R12, r12);
  160. GETREG(R13, r13);
  161. GETREG(R14, r14);
  162. GETREG(R15, r15);
  163. #endif
  164. GETREG(CS, cs);
  165. GETREG(EFLAGS, flags);
  166. #ifdef CONFIG_X86_32
  167. GETREG(SS, ss);
  168. #endif
  169. #undef GETREG
  170. pid = userspace_pid[current_thread_info()->cpu];
  171. #ifdef CONFIG_X86_32
  172. if (have_fpx_regs) {
  173. struct user_fxsr_struct fpx;
  174. err = copy_from_user(&fpx,
  175. &((struct _fpstate __user *)sc.fpstate)->_fxsr_env[0],
  176. sizeof(struct user_fxsr_struct));
  177. if (err)
  178. return 1;
  179. err = convert_fxsr_from_user(&fpx, sc.fpstate);
  180. if (err)
  181. return 1;
  182. err = restore_fpx_registers(pid, (unsigned long *) &fpx);
  183. if (err < 0) {
  184. printk(KERN_ERR "copy_sc_from_user - "
  185. "restore_fpx_registers failed, errno = %d\n",
  186. -err);
  187. return 1;
  188. }
  189. } else
  190. #endif
  191. {
  192. struct user_i387_struct fp;
  193. err = copy_from_user(&fp, sc.fpstate,
  194. sizeof(struct user_i387_struct));
  195. if (err)
  196. return 1;
  197. err = restore_fp_registers(pid, (unsigned long *) &fp);
  198. if (err < 0) {
  199. printk(KERN_ERR "copy_sc_from_user - "
  200. "restore_fp_registers failed, errno = %d\n",
  201. -err);
  202. return 1;
  203. }
  204. }
  205. return 0;
  206. }
  207. static int copy_sc_to_user(struct sigcontext __user *to,
  208. struct _fpstate __user *to_fp, struct pt_regs *regs,
  209. unsigned long mask)
  210. {
  211. struct sigcontext sc;
  212. struct faultinfo * fi = &current->thread.arch.faultinfo;
  213. int err, pid;
  214. memset(&sc, 0, sizeof(struct sigcontext));
  215. #define PUTREG(regno, regname) sc.regname = regs->regs.gp[HOST_##regno]
  216. #ifdef CONFIG_X86_32
  217. PUTREG(GS, gs);
  218. PUTREG(FS, fs);
  219. PUTREG(ES, es);
  220. PUTREG(DS, ds);
  221. #endif
  222. PUTREG(DI, di);
  223. PUTREG(SI, si);
  224. PUTREG(BP, bp);
  225. PUTREG(SP, sp);
  226. PUTREG(BX, bx);
  227. PUTREG(DX, dx);
  228. PUTREG(CX, cx);
  229. PUTREG(AX, ax);
  230. #ifdef CONFIG_X86_64
  231. PUTREG(R8, r8);
  232. PUTREG(R9, r9);
  233. PUTREG(R10, r10);
  234. PUTREG(R11, r11);
  235. PUTREG(R12, r12);
  236. PUTREG(R13, r13);
  237. PUTREG(R14, r14);
  238. PUTREG(R15, r15);
  239. #endif
  240. sc.cr2 = fi->cr2;
  241. sc.err = fi->error_code;
  242. sc.trapno = fi->trap_no;
  243. PUTREG(IP, ip);
  244. PUTREG(CS, cs);
  245. PUTREG(EFLAGS, flags);
  246. #ifdef CONFIG_X86_32
  247. PUTREG(SP, sp_at_signal);
  248. PUTREG(SS, ss);
  249. #endif
  250. #undef PUTREG
  251. sc.oldmask = mask;
  252. sc.fpstate = to_fp;
  253. err = copy_to_user(to, &sc, sizeof(struct sigcontext));
  254. if (err)
  255. return 1;
  256. pid = userspace_pid[current_thread_info()->cpu];
  257. #ifdef CONFIG_X86_32
  258. if (have_fpx_regs) {
  259. struct user_fxsr_struct fpx;
  260. err = save_fpx_registers(pid, (unsigned long *) &fpx);
  261. if (err < 0){
  262. printk(KERN_ERR "copy_sc_to_user - save_fpx_registers "
  263. "failed, errno = %d\n", err);
  264. return 1;
  265. }
  266. err = convert_fxsr_to_user(to_fp, &fpx);
  267. if (err)
  268. return 1;
  269. err |= __put_user(fpx.swd, &to_fp->status);
  270. err |= __put_user(X86_FXSR_MAGIC, &to_fp->magic);
  271. if (err)
  272. return 1;
  273. if (copy_to_user(&to_fp->_fxsr_env[0], &fpx,
  274. sizeof(struct user_fxsr_struct)))
  275. return 1;
  276. } else
  277. #endif
  278. {
  279. struct user_i387_struct fp;
  280. err = save_fp_registers(pid, (unsigned long *) &fp);
  281. if (copy_to_user(to_fp, &fp, sizeof(struct user_i387_struct)))
  282. return 1;
  283. }
  284. return 0;
  285. }
  286. #ifdef CONFIG_X86_32
  287. static int copy_ucontext_to_user(struct ucontext __user *uc,
  288. struct _fpstate __user *fp, sigset_t *set,
  289. unsigned long sp)
  290. {
  291. int err = 0;
  292. err |= put_user(current->sas_ss_sp, &uc->uc_stack.ss_sp);
  293. err |= put_user(sas_ss_flags(sp), &uc->uc_stack.ss_flags);
  294. err |= put_user(current->sas_ss_size, &uc->uc_stack.ss_size);
  295. err |= copy_sc_to_user(&uc->uc_mcontext, fp, &current->thread.regs, 0);
  296. err |= copy_to_user(&uc->uc_sigmask, set, sizeof(*set));
  297. return err;
  298. }
  299. struct sigframe
  300. {
  301. char __user *pretcode;
  302. int sig;
  303. struct sigcontext sc;
  304. struct _fpstate fpstate;
  305. unsigned long extramask[_NSIG_WORDS-1];
  306. char retcode[8];
  307. };
  308. struct rt_sigframe
  309. {
  310. char __user *pretcode;
  311. int sig;
  312. struct siginfo __user *pinfo;
  313. void __user *puc;
  314. struct siginfo info;
  315. struct ucontext uc;
  316. struct _fpstate fpstate;
  317. char retcode[8];
  318. };
  319. int setup_signal_stack_sc(unsigned long stack_top, int sig,
  320. struct k_sigaction *ka, struct pt_regs *regs,
  321. sigset_t *mask)
  322. {
  323. struct sigframe __user *frame;
  324. void __user *restorer;
  325. int err = 0;
  326. /* This is the same calculation as i386 - ((sp + 4) & 15) == 0 */
  327. stack_top = ((stack_top + 4) & -16UL) - 4;
  328. frame = (struct sigframe __user *) stack_top - 1;
  329. if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame)))
  330. return 1;
  331. restorer = frame->retcode;
  332. if (ka->sa.sa_flags & SA_RESTORER)
  333. restorer = ka->sa.sa_restorer;
  334. err |= __put_user(restorer, &frame->pretcode);
  335. err |= __put_user(sig, &frame->sig);
  336. err |= copy_sc_to_user(&frame->sc, &frame->fpstate, regs, mask->sig[0]);
  337. if (_NSIG_WORDS > 1)
  338. err |= __copy_to_user(&frame->extramask, &mask->sig[1],
  339. sizeof(frame->extramask));
  340. /*
  341. * This is popl %eax ; movl $,%eax ; int $0x80
  342. *
  343. * WE DO NOT USE IT ANY MORE! It's only left here for historical
  344. * reasons and because gdb uses it as a signature to notice
  345. * signal handler stack frames.
  346. */
  347. err |= __put_user(0xb858, (short __user *)(frame->retcode+0));
  348. err |= __put_user(__NR_sigreturn, (int __user *)(frame->retcode+2));
  349. err |= __put_user(0x80cd, (short __user *)(frame->retcode+6));
  350. if (err)
  351. return err;
  352. PT_REGS_SP(regs) = (unsigned long) frame;
  353. PT_REGS_IP(regs) = (unsigned long) ka->sa.sa_handler;
  354. PT_REGS_EAX(regs) = (unsigned long) sig;
  355. PT_REGS_EDX(regs) = (unsigned long) 0;
  356. PT_REGS_ECX(regs) = (unsigned long) 0;
  357. if ((current->ptrace & PT_DTRACE) && (current->ptrace & PT_PTRACED))
  358. ptrace_notify(SIGTRAP);
  359. return 0;
  360. }
  361. int setup_signal_stack_si(unsigned long stack_top, int sig,
  362. struct k_sigaction *ka, struct pt_regs *regs,
  363. siginfo_t *info, sigset_t *mask)
  364. {
  365. struct rt_sigframe __user *frame;
  366. void __user *restorer;
  367. int err = 0;
  368. stack_top &= -8UL;
  369. frame = (struct rt_sigframe __user *) stack_top - 1;
  370. if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame)))
  371. return 1;
  372. restorer = frame->retcode;
  373. if (ka->sa.sa_flags & SA_RESTORER)
  374. restorer = ka->sa.sa_restorer;
  375. err |= __put_user(restorer, &frame->pretcode);
  376. err |= __put_user(sig, &frame->sig);
  377. err |= __put_user(&frame->info, &frame->pinfo);
  378. err |= __put_user(&frame->uc, &frame->puc);
  379. err |= copy_siginfo_to_user(&frame->info, info);
  380. err |= copy_ucontext_to_user(&frame->uc, &frame->fpstate, mask,
  381. PT_REGS_SP(regs));
  382. /*
  383. * This is movl $,%eax ; int $0x80
  384. *
  385. * WE DO NOT USE IT ANY MORE! It's only left here for historical
  386. * reasons and because gdb uses it as a signature to notice
  387. * signal handler stack frames.
  388. */
  389. err |= __put_user(0xb8, (char __user *)(frame->retcode+0));
  390. err |= __put_user(__NR_rt_sigreturn, (int __user *)(frame->retcode+1));
  391. err |= __put_user(0x80cd, (short __user *)(frame->retcode+5));
  392. if (err)
  393. return err;
  394. PT_REGS_SP(regs) = (unsigned long) frame;
  395. PT_REGS_IP(regs) = (unsigned long) ka->sa.sa_handler;
  396. PT_REGS_EAX(regs) = (unsigned long) sig;
  397. PT_REGS_EDX(regs) = (unsigned long) &frame->info;
  398. PT_REGS_ECX(regs) = (unsigned long) &frame->uc;
  399. if ((current->ptrace & PT_DTRACE) && (current->ptrace & PT_PTRACED))
  400. ptrace_notify(SIGTRAP);
  401. return 0;
  402. }
  403. long sys_sigreturn(struct pt_regs *regs)
  404. {
  405. unsigned long sp = PT_REGS_SP(&current->thread.regs);
  406. struct sigframe __user *frame = (struct sigframe __user *)(sp - 8);
  407. sigset_t set;
  408. struct sigcontext __user *sc = &frame->sc;
  409. unsigned long __user *oldmask = &sc->oldmask;
  410. unsigned long __user *extramask = frame->extramask;
  411. int sig_size = (_NSIG_WORDS - 1) * sizeof(unsigned long);
  412. if (copy_from_user(&set.sig[0], oldmask, sizeof(set.sig[0])) ||
  413. copy_from_user(&set.sig[1], extramask, sig_size))
  414. goto segfault;
  415. sigdelsetmask(&set, ~_BLOCKABLE);
  416. set_current_blocked(&set);
  417. if (copy_sc_from_user(&current->thread.regs, sc))
  418. goto segfault;
  419. /* Avoid ERESTART handling */
  420. PT_REGS_SYSCALL_NR(&current->thread.regs) = -1;
  421. return PT_REGS_SYSCALL_RET(&current->thread.regs);
  422. segfault:
  423. force_sig(SIGSEGV, current);
  424. return 0;
  425. }
  426. #else
  427. struct rt_sigframe
  428. {
  429. char __user *pretcode;
  430. struct ucontext uc;
  431. struct siginfo info;
  432. struct _fpstate fpstate;
  433. };
  434. int setup_signal_stack_si(unsigned long stack_top, int sig,
  435. struct k_sigaction *ka, struct pt_regs * regs,
  436. siginfo_t *info, sigset_t *set)
  437. {
  438. struct rt_sigframe __user *frame;
  439. int err = 0;
  440. struct task_struct *me = current;
  441. frame = (struct rt_sigframe __user *)
  442. round_down(stack_top - sizeof(struct rt_sigframe), 16);
  443. /* Subtract 128 for a red zone and 8 for proper alignment */
  444. frame = (struct rt_sigframe __user *) ((unsigned long) frame - 128 - 8);
  445. if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame)))
  446. goto out;
  447. if (ka->sa.sa_flags & SA_SIGINFO) {
  448. err |= copy_siginfo_to_user(&frame->info, info);
  449. if (err)
  450. goto out;
  451. }
  452. /* Create the ucontext. */
  453. err |= __put_user(0, &frame->uc.uc_flags);
  454. err |= __put_user(0, &frame->uc.uc_link);
  455. err |= __put_user(me->sas_ss_sp, &frame->uc.uc_stack.ss_sp);
  456. err |= __put_user(sas_ss_flags(PT_REGS_SP(regs)),
  457. &frame->uc.uc_stack.ss_flags);
  458. err |= __put_user(me->sas_ss_size, &frame->uc.uc_stack.ss_size);
  459. err |= copy_sc_to_user(&frame->uc.uc_mcontext, &frame->fpstate, regs,
  460. set->sig[0]);
  461. err |= __put_user(&frame->fpstate, &frame->uc.uc_mcontext.fpstate);
  462. if (sizeof(*set) == 16) {
  463. __put_user(set->sig[0], &frame->uc.uc_sigmask.sig[0]);
  464. __put_user(set->sig[1], &frame->uc.uc_sigmask.sig[1]);
  465. }
  466. else
  467. err |= __copy_to_user(&frame->uc.uc_sigmask, set,
  468. sizeof(*set));
  469. /*
  470. * Set up to return from userspace. If provided, use a stub
  471. * already in userspace.
  472. */
  473. /* x86-64 should always use SA_RESTORER. */
  474. if (ka->sa.sa_flags & SA_RESTORER)
  475. err |= __put_user(ka->sa.sa_restorer, &frame->pretcode);
  476. else
  477. /* could use a vstub here */
  478. return err;
  479. if (err)
  480. return err;
  481. /* Set up registers for signal handler */
  482. {
  483. struct exec_domain *ed = current_thread_info()->exec_domain;
  484. if (unlikely(ed && ed->signal_invmap && sig < 32))
  485. sig = ed->signal_invmap[sig];
  486. }
  487. PT_REGS_SP(regs) = (unsigned long) frame;
  488. PT_REGS_RDI(regs) = sig;
  489. /* In case the signal handler was declared without prototypes */
  490. PT_REGS_RAX(regs) = 0;
  491. /*
  492. * This also works for non SA_SIGINFO handlers because they expect the
  493. * next argument after the signal number on the stack.
  494. */
  495. PT_REGS_RSI(regs) = (unsigned long) &frame->info;
  496. PT_REGS_RDX(regs) = (unsigned long) &frame->uc;
  497. PT_REGS_RIP(regs) = (unsigned long) ka->sa.sa_handler;
  498. out:
  499. return err;
  500. }
  501. #endif
  502. long sys_rt_sigreturn(struct pt_regs *regs)
  503. {
  504. unsigned long sp = PT_REGS_SP(&current->thread.regs);
  505. struct rt_sigframe __user *frame =
  506. (struct rt_sigframe __user *)(sp - sizeof(long));
  507. struct ucontext __user *uc = &frame->uc;
  508. sigset_t set;
  509. if (copy_from_user(&set, &uc->uc_sigmask, sizeof(set)))
  510. goto segfault;
  511. sigdelsetmask(&set, ~_BLOCKABLE);
  512. set_current_blocked(&set);
  513. if (copy_sc_from_user(&current->thread.regs, &uc->uc_mcontext))
  514. goto segfault;
  515. /* Avoid ERESTART handling */
  516. PT_REGS_SYSCALL_NR(&current->thread.regs) = -1;
  517. return PT_REGS_SYSCALL_RET(&current->thread.regs);
  518. segfault:
  519. force_sig(SIGSEGV, current);
  520. return 0;
  521. }
  522. #ifdef CONFIG_X86_32
  523. long ptregs_sigreturn(void)
  524. {
  525. return sys_sigreturn(NULL);
  526. }
  527. long ptregs_rt_sigreturn(void)
  528. {
  529. return sys_rt_sigreturn(NULL);
  530. }
  531. #endif