axhal::arch

Function write_thread_pointer

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

Writes the thread pointer of the current CPU.

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

ยงSafety

This function is unsafe as it changes the CPU states.