18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#include <ppc-asm.h> 38c2ecf20Sopenharmony_ci#include <asm/unistd.h> 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci .text 68c2ecf20Sopenharmony_ciFUNC_START(getppid_tm_active) 78c2ecf20Sopenharmony_ci tbegin. 88c2ecf20Sopenharmony_ci beq 1f 98c2ecf20Sopenharmony_ci li r0, __NR_getppid 108c2ecf20Sopenharmony_ci sc 118c2ecf20Sopenharmony_ci tend. 128c2ecf20Sopenharmony_ci blr 138c2ecf20Sopenharmony_ci1: 148c2ecf20Sopenharmony_ci li r3, -1 158c2ecf20Sopenharmony_ci blr 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciFUNC_START(getppid_tm_suspended) 188c2ecf20Sopenharmony_ci tbegin. 198c2ecf20Sopenharmony_ci beq 1f 208c2ecf20Sopenharmony_ci li r0, __NR_getppid 218c2ecf20Sopenharmony_ci tsuspend. 228c2ecf20Sopenharmony_ci sc 238c2ecf20Sopenharmony_ci tresume. 248c2ecf20Sopenharmony_ci tend. 258c2ecf20Sopenharmony_ci blr 268c2ecf20Sopenharmony_ci1: 278c2ecf20Sopenharmony_ci li r3, -1 288c2ecf20Sopenharmony_ci blr 29