Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\desc.h Create Date:2022-07-28 05:48:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:native_load_tls

Proto:static inline void native_load_tls(struct thread_struct *t, unsigned int cpu)

Type:void

Parameter:

TypeParameterName
struct thread_struct *t
unsigned intcpu
278  gdt = Provide the original GDT
281  When i < GDT_ENTRY_TLS_ENTRIES cycle gdt[The layout of the per-CPU GDT under Linux:* 0 - null <=== cacheline #1* 1 - reserved* 2 - reserved* 3 - reserved* 4 - unused <=== cacheline #2* 5 - unused* ------- start of TLS (Thread-Local Storage) segments:* 6 - TLS segment #1 [ glibc's TLS segment ]* + i] = Cached TLS descriptors: [i]