cpu_init(9)
π¦ cpu_init(9) β Kernel API Manual π
okay so welcome to the Kernel API Manual, bestie π
this is the page for cpu_init(9), and it's giving βtiny function, big boot-energyβ energy. Let's get into it π«Ά
π NAME π
cpu_init β (the original NAME line is blank, no cap β we are not inventing a description) π
β¨ SYNOPSIS β¨
void cpu_init (void );
π― ARGUMENTS π―
voidβ no arguments. that's it, that's the whole argument list π«Ά
π₯ DESCRIPTION π₯
okay so this is literally our initial entry point for each CPU π
it gets invoked on the boot CPU before start_kernel is called. For SMP, a combo of this and start_secondary brings each processor up to a ready state before hand forking the idle loop β yes, βhand forkingβ is the phrase, we keep it π«Ά
We do all the basic processor init right here, including setting up the caches, FPU, DSP, etc. β¨ By the time start_kernel is hit (and subsequently platform_setup), things like determining the CPU subtype and the initial configuration will all be done. iconic behavior, honestly π
Each processor family is still responsible for doing its own probing and cache configuration in cpu_probe β that part is not this function's job, bestie, don't try to make it one π
πΈ SEE ALSO πΈ
- Kernel file
./arch/sh/kernel/cpu/init.cπ
source/version: ./arch/sh/kernel/cpu Β· date: October 2026 Β· page: cpu_init(9) β mwah, bye bestie πβ¨
π¦ 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