arch/arc/include/asm/current.h

Source file repositories/reference/linux-study-clean/arch/arc/include/asm/current.h

File Facts

System
Linux kernel
Corpus path
arch/arc/include/asm/current.h
Extension
.h
Size
550 bytes
Lines
26
Domain
Architecture Layer
Bucket
arch/arc
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_ARC_CURRENT_H
#define _ASM_ARC_CURRENT_H

#ifndef __ASSEMBLER__

#ifdef CONFIG_ARC_CURR_IN_REG

register struct task_struct *curr_arc asm("gp");
#define current (curr_arc)

#else
#include <asm-generic/current.h>
#endif /* ! CONFIG_ARC_CURR_IN_REG */

#endif /* ! __ASSEMBLER__ */

#endif /* _ASM_ARC_CURRENT_H */

Annotation

Implementation Notes