2 * Copyright 2015, Cyril Bur, IBM Corp.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
10 #include "basic_asm.h"
12 /* long signal_self(pid_t pid, int sig); */
13 FUNC_START(signal_self)
14 li r0,37 /* sys_kill */
15 /* r3 already has our pid in it */
16 /* r4 already has signal type in it */
23 /* long tm_signal_self(pid_t pid, int sig, int *ret); */
24 FUNC_START(tm_signal_self)
26 std r5,STACK_FRAME_PARAM(0)(sp) /* ret */
30 li r0,37 /* sys_kill */
31 /* r3 already has our pid in it */
32 /* r4 already has signal type in it */
34 ld r5,STACK_FRAME_PARAM(0)(sp) /* ret */
39 tresume. /* Be nice to some cleanup, jumps back to tbegin then to 1: */
41 * Transaction should be proper doomed and we should never get
50 FUNC_END(tm_signal_self)