mips_cm_l2sync_phys_base(9)
β¨ mips_cm_l2sync_phys_base(9) β¨
okay so bestie, welcome to the Kernel API Manual π β today's main character is mips_cm_l2sync_phys_base, and honestly? she's lowkey iconic in a very specific, very MIPS way. let's get into it π
πΈ NAME πΈ
mips_cm_l2sync_phys_base β retrieve the physical base address of the CM L2-sync region
like, she gives you an address. a physical one. for the L2-sync region of the Coherence Manager. no cap. β¨
π¦ SYNOPSIS π¦
phys_addr_t mips_cm_l2sync_phys_base (void );
π ARGUMENTS π
voidβ no arguments π she takes nothing, she needs nothing, she simply returns. main character energy fr.
π DESCRIPTION π
okay so what this function does is it returns the physical base address of the Coherence Manager L2-cache only region π«Ά. that's the whole vibe.
it ships with a default implementation, and the way that works is: it reads the CMGCRL2OnlySyncBase register where that register is available π β or, if it's not available, it just returns a 4K region just behind the CM GCR base address π
.
and here's the cute part: platforms that figure out this address some other way can totally override her π β you just define a function with the same prototype and boom, you're running your own version. custom fit, bestie. π
π₯ SEE ALSO π₯
- Kernel file
./arch/mips/include/asm/mips-cm.hπ mips_cm_phys_base(9)mips_cm_error_report(9)mips_cm_probe(9)mips_cm_present(9)mips_cm_update_property(9)mips_cm_has_l2sync(9)mips_cm_l2sync(9)mips_cm_revision(9)mips_cm_max_vp_width(9)mips_cm_vp_id(9)mips_cm_lock_other(9)mips_cm_unlock_other(9)mips_cm_lock_other_cpu(9)
like yes, that's a whole friend group and they all live in ./arch/mips/include/asm together π§π
k that's the whole page bestie, go read the rest of the CM lore, it's giving deep MIPS brainrot in the best way ππΈ
sign-off time πβ¨ β this little masterpiece comes from ./arch/mips/include/asm, dated October 2026, and it's the mips_cm_l2sync_phys_base(9) page from the Kernel API Manual. slay, periodt, 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