]>
Commit | Line | Data |
---|---|---|
7fe924d9 S |
1 | #include <ppc-asm.h> |
2 | #include <asm/unistd.h> | |
3 | ||
4 | .text | |
5 | FUNC_START(getppid_tm_active) | |
6 | tbegin. | |
7 | beq 1f | |
8 | li r0, __NR_getppid | |
9 | sc | |
10 | tend. | |
11 | blr | |
12 | 1: | |
13 | li r3, -1 | |
14 | blr | |
15 | ||
16 | FUNC_START(getppid_tm_suspended) | |
17 | tbegin. | |
18 | beq 1f | |
19 | li r0, __NR_getppid | |
20 | tsuspend. | |
21 | sc | |
22 | tresume. | |
23 | tend. | |
24 | blr | |
25 | 1: | |
26 | li r3, -1 | |
27 | blr |