Skip to main content

write_thread_pointer

Function write_thread_pointer 

Source
pub unsafe fn write_thread_pointer(tpidr_el0: usize)
Expand description

Writes the thread pointer of the current CPU (TPIDR_EL0).

It is used to implement TLS (Thread Local Storage).

ยงSafety

This function is unsafe as it changes the current CPU states.