mips_gic_vx_map_reg(9)
π mips_gic_vx_map_reg(9) β from the Kernel API Manual, bestie π
okay so picture this: it's a kernel manual page, it's about MIPS GICs, and it's lowkey kind of a baddie. this is mips_gic_vx_map_reg, and we're gonna get you fluent in it β¨
πΈ NAME πΈ
mips_gic_vx_map_reg β returns the GIC_Vx_<intr>_MAP register offset. that's the whole job. she's a one-line icon π
π¦ SYNOPSIS π¦
unsigned int mips_gic_vx_map_reg (enum mips_gic_local_interrupt intr );
π ARGUMENTS π
intrβ a GIC local interrupt. that's it, that's the whole argument. give her one (1) interrupt and she'll do the rest π«Ά
π DESCRIPTION π
so what she actually does is determine the index of the GIC_VL_<intr>_MAP or GIC_VO_<intr>_MAP register inside the block of GIC map registers. like, she's the friend who knows exactly where everyone's sitting at the table π
and here's the tea: it's almost the same order as the interrupts in the pending & mask registers β the one used by enum mips_gic_local_interrupt β BUT it moves the FDC interrupt, and because of that it offsets all the interrupts after it... π so close to being identical and yet. not.
the return value is suitable for use with the (read|write)_gic_v[lo]_map accessor functions. so like, you get the index from her, you hand it straight to those accessors, and everything slays β¨
π₯ RETURN π₯
the map register index corresponding to intr. no cap, that's literally the whole return value π
π SEE ALSO π
- Kernel file
./arch/mips/include/asm/mips-gic.henum mips_gic_local_interrupt(9)mips_gic_present(9)gic_get_c0_compare_int(9)gic_get_c0_perfcount_int(9)gic_get_c0_fdc_int(9)
fr fr bestie, read the whole list. the FDC one especially β she's the reason the ordering shifts, remember? iykyk π
and that's the page!! π this one lives in ./arch/mips/include/asm, dated October 2026 β mwah, go touch some registers, ily π§ββοΈππ
π¦ 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