arch/mips/dec/reset.c
Source file repositories/reference/linux-study-clean/arch/mips/dec/reset.c
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/dec/reset.c- Extension
.c- Size
- 777 bytes
- Lines
- 44
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
Dependency Surface
linux/interrupt.hlinux/linkage.hasm/addrspace.hasm/dec/reset.h
Detected Declarations
function back_to_promfunction dec_machine_restartfunction dec_machine_haltfunction dec_machine_power_offfunction dec_intr_halt
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
/*
* Reset a DECstation machine.
*
* Copyright (C) 199x the Anonymous
* Copyright (C) 2001, 2002, 2003 Maciej W. Rozycki
*/
#include <linux/interrupt.h>
#include <linux/linkage.h>
#include <asm/addrspace.h>
#include <asm/dec/reset.h>
typedef void __noreturn (* noret_func_t)(void);
static inline void __noreturn back_to_prom(void)
{
noret_func_t func = (void *)CKSEG1ADDR(0x1fc00000);
func();
}
void __noreturn dec_machine_restart(char *command)
{
back_to_prom();
}
void __noreturn dec_machine_halt(void)
{
back_to_prom();
}
void __noreturn dec_machine_power_off(void)
{
/* DECstations don't have a software power switch */
back_to_prom();
}
irqreturn_t dec_intr_halt(int irq, void *dev_id)
{
dec_machine_halt();
}
Annotation
- Immediate include surface: `linux/interrupt.h`, `linux/linkage.h`, `asm/addrspace.h`, `asm/dec/reset.h`.
- Detected declarations: `function back_to_prom`, `function dec_machine_restart`, `function dec_machine_halt`, `function dec_machine_power_off`, `function dec_intr_halt`.
- Atlas domain: Architecture Layer / arch/mips.
- Implementation status: source implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.