arch/mips/include/asm/branch.h
Source file repositories/reference/linux-study-clean/arch/mips/include/asm/branch.h
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/include/asm/branch.h- Extension
.h- Size
- 2503 bytes
- Lines
- 104
- Domain
- Architecture Layer
- Bucket
- arch/mips
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
asm/cpu-features.hasm/mipsregs.hasm/ptrace.hasm/inst.h
Detected Declarations
function mm_isBranchInstrfunction delay_slotfunction clear_delay_slotfunction set_delay_slotfunction exception_epcfunction compute_return_epcfunction MIPS16e_compute_return_epc
Annotated Snippet
if (inst->ri.opcode == MIPS16e_extend_op) {
regs->cp0_epc += 4;
return 0;
}
regs->cp0_epc += 2;
return 0;
}
return __MIPS16e_compute_return_epc(regs);
}
#endif /* _ASM_BRANCH_H */
Annotation
- Immediate include surface: `asm/cpu-features.h`, `asm/mipsregs.h`, `asm/ptrace.h`, `asm/inst.h`.
- Detected declarations: `function mm_isBranchInstr`, `function delay_slot`, `function clear_delay_slot`, `function set_delay_slot`, `function exception_epc`, `function compute_return_epc`, `function MIPS16e_compute_return_epc`.
- Atlas domain: Architecture Layer / arch/mips.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.