mirror of https://git.musl-libc.org/git/musl
Browse Source
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.master
2 changed files with 5 additions and 7 deletions
@ -0,0 +1,5 @@ |
|||
int __set_thread_area(void *p) |
|||
{ |
|||
__asm__ __volatile__ ("msr tpidr_el0,%0" : : "r"(p) : "memory"); |
|||
return 0; |
|||
} |
|||
@ -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 |
|||
Loading…
Reference in new issue