arch/xtensa/include/asm/mtd-xip.h

Source file repositories/reference/linux-study-clean/arch/xtensa/include/asm/mtd-xip.h

File Facts

System
Linux kernel
Corpus path
arch/xtensa/include/asm/mtd-xip.h
Extension
.h
Size
441 bytes
Lines
15
Domain
Architecture Layer
Bucket
arch/xtensa
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

#ifndef _ASM_MTD_XIP_H
#define _ASM_MTD_XIP_H

#include <asm/processor.h>

#define xip_irqpending()	(xtensa_get_sr(interrupt) & xtensa_get_sr(intenable))
#define xip_currtime()		(xtensa_get_sr(ccount))
#define xip_elapsed_since(x)	((xtensa_get_sr(ccount) - (x)) / 1000) /* should work up to 1GHz */
#define xip_cpu_idle()		do { asm volatile ("waiti 0"); } while (0)

#endif /* _ASM_MTD_XIP_H */

Annotation

Implementation Notes