Struct bootloader::boot_info::TlsTemplate
source · [−]Expand description
Information about the thread local storage (TLS) template.
This template can be used to set up thread local storage for threads. For
each thread, a new memory location of size mem_size
must be initialized.
Then the first file_size
bytes of this template needs to be copied to the
location. The additional mem_size - file_size
bytes must be initialized with
zero.
Fields
start_addr: u64
The virtual start address of the thread local storage template.
file_size: u64
The number of data bytes in the template.
Corresponds to the length of the .tdata
section.
mem_size: u64
The total number of bytes that the TLS segment should have in memory.
Corresponds to the combined length of the .tdata
and .tbss
sections.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.