this is not a public interface, and does not even necessarily match the syscall on all archs that have a syscall by that name. on archs where it's implemented in C, no action on the source file is needed; the hidden declaration in pthread_arch.h suffices.
13 lines
204 B
ArmAsm
13 lines
204 B
ArmAsm
.text
|
|
.global __set_thread_area
|
|
.hidden __set_thread_area
|
|
.type __set_thread_area, %function
|
|
__set_thread_area:
|
|
# mov pointer in reg3 into r2
|
|
mr 2, 3
|
|
# put 0 into return reg
|
|
li 3, 0
|
|
# return
|
|
blr
|
|
|