brintos

brintos / linux-shallow public Read only

0
0
Text · 754 B · aed632d Raw
64 lines · plain
1/* SPDX-License-Identifier: GPL-2.0 */2#include <basic_asm.h>3#include <asm/unistd.h>4 5	.text6FUNC_START(getppid_tm_active)7	tbegin.8	beq 1f9	li	r0, __NR_getppid10	sc11	tend.12	blr131:14	li	r3, -115	blr16 17FUNC_START(getppid_tm_suspended)18	tbegin.19	beq 1f20	li	r0, __NR_getppid21	tsuspend.22	sc23	tresume.24	tend.25	blr261:27	li	r3, -128	blr29 30 31.macro scv level32	.long (0x44000001 | (\level) << 5)33.endm34 35FUNC_START(getppid_scv_tm_active)36	PUSH_BASIC_STACK(0)37	tbegin.38	beq 1f39	li	r0, __NR_getppid40	scv	041	tend.42	POP_BASIC_STACK(0)43	blr441:45	li	r3, -146	POP_BASIC_STACK(0)47	blr48 49FUNC_START(getppid_scv_tm_suspended)50	PUSH_BASIC_STACK(0)51	tbegin.52	beq 1f53	li	r0, __NR_getppid54	tsuspend.55	scv	056	tresume.57	tend.58	POP_BASIC_STACK(0)59	blr601:61	li	r3, -162	POP_BASIC_STACK(0)63	blr64