From 709fee55fd1f83faef91cf0542766da4421424f3 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 12 Jul 2025 21:56:08 -0400 Subject: aarch64: replace asm source file for __set_thread_area with inline asm this change both aligns with the intended future direction for most assembly usage, and makes it possible to add arch-specific setup logic based on hwcaps like we have for 32-bit arm. --- src/thread/aarch64/__set_thread_area.c | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/thread/aarch64/__set_thread_area.c (limited to 'src/thread/aarch64/__set_thread_area.c') diff --git a/src/thread/aarch64/__set_thread_area.c b/src/thread/aarch64/__set_thread_area.c new file mode 100644 index 00000000..a348ee77 --- /dev/null +++ b/src/thread/aarch64/__set_thread_area.c @@ -0,0 +1,5 @@ +int __set_thread_area(void *p) +{ + __asm__ __volatile__ ("msr tpidr_el0,%0" : : "r"(p) : "memory"); + return 0; +} -- cgit v1.2.1