arch/mips/kernel/irq-gt641xx.c
Source file repositories/reference/linux-study-clean/arch/mips/kernel/irq-gt641xx.c
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/kernel/irq-gt641xx.c- Extension
.c- Size
- 2729 bytes
- Lines
- 119
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/hardirq.hlinux/init.hlinux/irq.hlinux/spinlock.hlinux/types.hasm/gt64120.h
Detected Declarations
function ack_gt641xx_irqfunction mask_gt641xx_irqfunction mask_ack_gt641xx_irqfunction unmask_gt641xx_irqfunction gt641xx_irq_dispatchfunction gt641xx_irq_init
Annotated Snippet
if (cause & (1U << i)) {
do_IRQ(GT641XX_IRQ_BASE + i);
return;
}
}
atomic_inc(&irq_err_count);
}
void __init gt641xx_irq_init(void)
{
int i;
GT_WRITE(GT_INTRMASK_OFS, 0);
GT_WRITE(GT_INTRCAUSE_OFS, 0);
/*
* bit0 : logical or of all the interrupt bits.
* bit30: logical or of bits[29:26,20:1].
* bit31: logical or of bits[25:1].
*/
for (i = 1; i < 30; i++)
irq_set_chip_and_handler(GT641XX_IRQ_BASE + i,
>641xx_irq_chip, handle_level_irq);
}
Annotation
- Immediate include surface: `linux/hardirq.h`, `linux/init.h`, `linux/irq.h`, `linux/spinlock.h`, `linux/types.h`, `asm/gt64120.h`.
- Detected declarations: `function ack_gt641xx_irq`, `function mask_gt641xx_irq`, `function mask_ack_gt641xx_irq`, `function unmask_gt641xx_irq`, `function gt641xx_irq_dispatch`, `function gt641xx_irq_init`.
- Atlas domain: Architecture Layer / arch/mips.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.