Home
last modified time | relevance | path

Searched refs:gcspr_el0 (Results 1 – 9 of 9) sorted by relevance

/linux-6.15/arch/arm64/mm/
H A Dgcs.c53 tsk->thread.gcspr_el0 = read_sysreg_s(SYS_GCSPR_EL0); in gcs_alloc_thread_stack()
66 tsk->thread.gcspr_el0 = addr + size - sizeof(u64); in gcs_alloc_thread_stack()
172 task->thread.gcspr_el0 = 0; in gcs_free()
200 if (task->thread.gcs_base || task->thread.gcspr_el0) in arch_set_shadow_stack_status()
211 task->thread.gcspr_el0 = gcs + size - sizeof(u64); in arch_set_shadow_stack_status()
215 write_sysreg_s(task->thread.gcspr_el0, in arch_set_shadow_stack_status()
/linux-6.15/tools/testing/selftests/arm64/gcs/
H A Dbasic-gcs.c98 unsigned long *gcspr_el0; in read_gcspr_el0() local
101 gcspr_el0 = get_gcspr(); in read_gcspr_el0()
102 ksft_print_msg("GCSPR_EL0 is %p\n", gcspr_el0); in read_gcspr_el0()
H A Dgcs-util.h25 __u64 gcspr_el0; member
H A Dlibc-gcs.c246 gcspr = child_gcs.gcspr_el0; in TEST()
/linux-6.15/arch/arm64/kernel/
H A Dsignal.c1058 u64 gcspr_el0, cap; in gcs_restore_signal() local
1067 gcspr_el0 = read_sysreg_s(SYS_GCSPR_EL0); in gcs_restore_signal()
1090 if (cap != GCS_SIGNAL_CAP(gcspr_el0)) in gcs_restore_signal()
1098 write_sysreg_s(gcspr_el0 + 8, SYS_GCSPR_EL0); in gcs_restore_signal()
1417 u64 gcspr_el0; in gcs_signal_entry() local
1430 gcspr_el0 = read_sysreg_s(SYS_GCSPR_EL0); in gcs_signal_entry()
1436 (unsigned long __user *)(gcspr_el0 - 16), &ret); in gcs_signal_entry()
1437 put_user_gcs(GCS_SIGNAL_CAP(gcspr_el0 - 8), in gcs_signal_entry()
1438 (unsigned long __user *)(gcspr_el0 - 8), &ret); in gcs_signal_entry()
1442 gcspr_el0 -= 16; in gcs_signal_entry()
[all …]
H A Dprocess.c548 current->thread.gcspr_el0 = read_sysreg_s(SYS_GCSPR_EL0); in gcs_preserve_current_state()
558 write_sysreg_s(next->thread.gcspr_el0, SYS_GCSPR_EL0); in gcs_thread_switch()
H A Dptrace.c1499 user_gcs->gcspr_el0 = target->thread.gcspr_el0; in task_gcs_to_user()
1507 target->thread.gcspr_el0 = user_gcs->gcspr_el0; in task_gcs_from_user()
/linux-6.15/arch/arm64/include/uapi/asm/
H A Dptrace.h332 __u64 gcspr_el0; member
/linux-6.15/arch/arm64/include/asm/
H A Dprocessor.h191 u64 gcspr_el0; member