switch_gdt_and_percpu_base(9)
π switch_gdt_and_percpu_base(9) β Kernel API Manual π
okay bestie, welcome to the little group chat for this kernel function β itβs giving early-boot glow-up energy, no cap β¨
β¨ NAME β¨
switch_gdt_and_percpu_base β switch to direct GDT and runtime per CPU base π
π¦ SYNOPSIS π¦
void switch_gdt_and_percpu_base (int cpu );
π ARGUMENTS π
cpuβ the CPU number for which this is invoked π
π DESCRIPTION π
okay so this one gets invoked during early boot to switch from the early GDT and early per CPU over to the direct GDT and the runtime per CPU area. literally a whole boot-time wardrobe change π
on 32-bit the percpu base switch is implicit by loading the direct GDT. on 64bit this requires to update GSBASE β yes maβam, thatβs the whole vibe π
π₯ SEE ALSO π₯
- Kernel file
./arch/x86/kernel/cpu/common.cβstore_cpu_caps(9),microcode_check(9)π«Ά
mwah π this pageβs source/version and date are ./arch/x86/kernel/cpu, October 2026, and switch_gdt_and_percpu_base(9) β bye bestie, slay responsibly πΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms