axhal::arch

Function read_thread_pointer

Source
pub fn read_thread_pointer() -> usize
Expand description

Reads the thread pointer of the current CPU.

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