arch/arm64/include/asm/traps.h
Source file repositories/reference/linux-study-clean/arch/arm64/include/asm/traps.h
File Facts
- System
- Linux kernel
- Corpus path
arch/arm64/include/asm/traps.h- Extension
.h- Size
- 4850 bytes
- Lines
- 163
- Domain
- Architecture Layer
- Bucket
- arch/arm64
- 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
linux/list.hasm/esr.hasm/ptrace.hasm/sections.h
Detected Declarations
function try_emulate_armv8_deprecatedfunction __in_irqentry_textfunction in_entry_textfunction arm64_is_ras_serrorfunction arm64_ras_serror_get_severityfunction arm64_mops_reset_regsfunction ARM
Annotated Snippet
if (option_a ^ wrong_option) {
/* Format is from Option A; forward set */
regs->regs[dstreg] = dst + size;
regs->regs[sizereg] = -size;
}
} else {
/* CPY* instruction */
unsigned long src = regs->regs[srcreg];
if (!(option_a ^ wrong_option)) {
/* Format is from Option B */
if (regs->pstate & PSR_N_BIT) {
/* Backward copy */
regs->regs[dstreg] = dst - size;
regs->regs[srcreg] = src - size;
}
} else {
/* Format is from Option A */
if (size & BIT(63)) {
/* Forward copy */
regs->regs[dstreg] = dst + size;
regs->regs[srcreg] = src + size;
regs->regs[sizereg] = -size;
}
}
}
if (esr & ESR_ELx_MOPS_ISS_FROM_EPILOGUE)
regs->pc -= 8;
else
regs->pc -= 4;
}
#endif
Annotation
- Immediate include surface: `linux/list.h`, `asm/esr.h`, `asm/ptrace.h`, `asm/sections.h`.
- Detected declarations: `function try_emulate_armv8_deprecated`, `function __in_irqentry_text`, `function in_entry_text`, `function arm64_is_ras_serror`, `function arm64_ras_serror_get_severity`, `function arm64_mops_reset_regs`, `function ARM`.
- Atlas domain: Architecture Layer / arch/arm64.
- 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.