mips_cm_phys_base(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ”₯


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