Home
last modified time | relevance | path

Searched refs:gcspr (Results 1 – 7 of 7) sorted by relevance

/linux/tools/testing/selftests/arm64/signal/testcases/
H A Dgcs_frame.c23 unsigned long expected, gcspr; in gcs_regs() local
34 gcspr = get_gcspr_el0(); in gcs_regs()
35 gcspr -= 8; in gcs_regs()
36 fprintf(stderr, "Expecting GCSPR_EL0 %lx\n", gcspr); in gcs_regs()
70 if (gcs->gcspr != gcspr) { in gcs_regs()
72 gcs->gcspr, gcspr); in gcs_regs()
/linux/arch/arm64/include/asm/
H A Dgcs.h121 u64 gcspr = read_sysreg_s(SYS_GCSPR_EL0); in push_user_gcs() local
123 gcspr -= sizeof(u64); in push_user_gcs()
124 put_user_gcs(val, (unsigned long __user *)gcspr, err); in push_user_gcs()
126 write_sysreg_s(gcspr, SYS_GCSPR_EL0); in push_user_gcs()
150 u64 gcspr = read_sysreg_s(SYS_GCSPR_EL0); in pop_user_gcs() local
153 read_val = get_user_gcs((__force unsigned long __user *)gcspr, err); in pop_user_gcs()
155 write_sysreg_s(gcspr + sizeof(u64), SYS_GCSPR_EL0); in pop_user_gcs()
/linux/tools/testing/selftests/arm64/gcs/
H A Dgcs-util.h54 unsigned long *gcspr; in get_gcspr() local
58 : "=r" (gcspr) in get_gcspr()
62 return gcspr; in get_gcspr()
H A Dlibc-gcs.c141 uint64_t val, rval, gcspr; in TEST() local
246 gcspr = child_gcs.gcspr_el0; in TEST()
248 gcspr, child_gcs.features_enabled, in TEST()
254 val = ptrace(PTRACE_PEEKDATA, child, (void *)gcspr, NULL); in TEST()
267 remote_iov.iov_base = (void *)gcspr; in TEST()
277 ret = ptrace(PTRACE_POKEDATA, child, (void *)gcspr, NULL); in TEST()
282 EXPECT_EQ(0, ptrace(PTRACE_PEEKDATA, child, (void *)gcspr, NULL)); in TEST()
285 ret = ptrace(PTRACE_POKEDATA, child, (void *)gcspr, val); in TEST()
290 EXPECT_EQ(val, ptrace(PTRACE_PEEKDATA, child, (void *)gcspr, NULL)); in TEST()
/linux/arch/arm64/kernel/
H A Dsignal.c682 u64 gcspr = read_sysreg_s(SYS_GCSPR_EL0); in preserve_gcs_context() local
692 gcspr -= 8; in preserve_gcs_context()
696 __put_user_error(gcspr, &ctx->gcspr, err); in preserve_gcs_context()
706 u64 gcspr, enabled; in restore_gcs_context() local
712 __get_user_error(gcspr, &user->gcs->gcspr, err); in restore_gcs_context()
740 write_sysreg_s(gcspr, SYS_GCSPR_EL0); in restore_gcs_context()
/linux/arch/arm64/include/uapi/asm/
H A Dsigcontext.h190 __u64 gcspr; member
/linux/tools/testing/selftests/arm64/abi/
H A Dhwcap.c134 unsigned long *gcspr; in gcs_sigill() local
138 : "=r" (gcspr) in gcs_sigill()