mips_cm_phys_base(9)
π mips_cm_phys_base(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one's a lil function from the MIPS corner of the kernel and honestly? she's short but she matters π
πΈ NAME πΈ
mips_cm_phys_base β grab the physical base address of the CM, that's the whole job, no cap π
β¨ SYNOPSIS β¨
phys_addr_t mips_cm_phys_base (void );
like, that's it. that's the whole signature. she's tidy π
π¦ ARGUMENTS π¦
voidβ no arguments. zero. none. she takes nothing from you, she just gives π«Ά
π§ DESCRIPTION π§
okay so here's the tea β this function returns the physical base address of the Coherence Manager global control block β and if there's, like, no Coherence Manager present at all? she returns 0. simple as that π
she's providing a default implementation which reads the CMGCRBase register where that register is available π and here's the iconic part: platforms that figure out this address some other way can totally override her β you just define a function with the same prototype and you've stolen the spotlight, main character energy fr fr π
π SEE ALSO π
the kernel file bestie, go read her:
./arch/mips/include/asm/mips-cm.h
and the whole squad of related functions, all of them, not skipping a single one because we don't do that here π₯
mips_cm_l2sync_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)
ngl if you ever override this default, double-check your prototype matches exactly β same prototype or it's not the same function, bestie π
and that's a wrap, pookie π this page came from ./arch/mips/include/asm and she's dated October 2026 β go forth and find that base address, iykyk π
π
π¦ 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