arch/powerpc/platforms/52xx/mpc52xx_pic.c

Source file repositories/reference/linux-study-clean/arch/powerpc/platforms/52xx/mpc52xx_pic.c

File Facts

System
Linux kernel
Corpus path
arch/powerpc/platforms/52xx/mpc52xx_pic.c
Extension
.c
Size
17068 bytes
Lines
520
Domain
Architecture Layer
Bucket
arch/powerpc
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.

Dependency Surface

Detected Declarations

Annotated Snippet

if (irq == 0) {	/* bestcomm */
			status = in_be32(&sdma->IntPend);
			irq = ffs(status) - 1;
			irq |= (MPC52xx_IRQ_L1_SDMA << MPC52xx_IRQ_L1_OFFSET);
		} else {
			irq |= (MPC52xx_IRQ_L1_PERP << MPC52xx_IRQ_L1_OFFSET);
		}
	} else {
		return 0;
	}

	return irq_find_mapping(mpc52xx_irqhost, irq);
}

Annotation

Implementation Notes