Files
semi-libc/src/thread/aarch64/__set_thread_area.c
T
Rich Felker 709fee55fd 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.
2025-07-12 21:56:08 -04:00

6 lines
112 B
C

int __set_thread_area(void *p)
{
__asm__ __volatile__ ("msr tpidr_el0,%0" : : "r"(p) : "memory");
return 0;
}