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.
This commit is contained in:
Rich Felker
2025-07-12 21:56:08 -04:00
parent bd981f3342
commit 709fee55fd
2 changed files with 5 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
int __set_thread_area(void *p)
{
__asm__ __volatile__ ("msr tpidr_el0,%0" : : "r"(p) : "memory");
return 0;
}
-7
View File
@@ -1,7 +0,0 @@
.global __set_thread_area
.hidden __set_thread_area
.type __set_thread_area,@function
__set_thread_area:
msr tpidr_el0,x0
mov w0,#0
ret