arch/parisc/kernel/kgdb.c
Source file repositories/reference/linux-study-clean/arch/parisc/kernel/kgdb.c
File Facts
- System
- Linux kernel
- Corpus path
arch/parisc/kernel/kgdb.c- Extension
.c- Size
- 4440 bytes
- Lines
- 211
- Domain
- Architecture Layer
- Bucket
- arch/parisc
- 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/kgdb.hlinux/string.hlinux/sched.hlinux/notifier.hlinux/kdebug.hlinux/uaccess.hasm/ptrace.hasm/traps.hasm/processor.hasm/text-patching.hasm/cacheflush.h
Detected Declarations
function __kgdb_notifyfunction kgdb_notifyfunction kgdb_arch_initfunction kgdb_arch_exitfunction pt_regs_to_gdb_regsfunction gdb_regs_to_pt_regsfunction sleeping_thread_to_gdb_regsfunction step_instruction_queuefunction kgdb_arch_set_pcfunction kgdb_arch_set_breakpointfunction kgdb_arch_remove_breakpointfunction kgdb_arch_handle_exception
Annotated Snippet
if (kgdb_hex2long(&p, &addr)) {
kgdb_arch_set_pc(regs, addr);
} else if (trap == 9 && regs->iir ==
PARISC_KGDB_COMPILED_BREAK_INSN) {
step_instruction_queue(regs);
mtctl(-1, 0);
} else {
mtctl(0, 0);
}
regs->gr[0] |= PSW_R;
return 0;
}
return -1;
}
Annotation
- Immediate include surface: `linux/kgdb.h`, `linux/string.h`, `linux/sched.h`, `linux/notifier.h`, `linux/kdebug.h`, `linux/uaccess.h`, `asm/ptrace.h`, `asm/traps.h`.
- Detected declarations: `function __kgdb_notify`, `function kgdb_notify`, `function kgdb_arch_init`, `function kgdb_arch_exit`, `function pt_regs_to_gdb_regs`, `function gdb_regs_to_pt_regs`, `function sleeping_thread_to_gdb_regs`, `function step_instruction_queue`, `function kgdb_arch_set_pc`, `function kgdb_arch_set_breakpoint`.
- Atlas domain: Architecture Layer / arch/parisc.
- 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.