arch/hexagon/include/asm/switch_to.h

Source file repositories/reference/linux-study-clean/arch/hexagon/include/asm/switch_to.h

File Facts

System
Linux kernel
Corpus path
arch/hexagon/include/asm/switch_to.h
Extension
.h
Size
478 bytes
Lines
22
Domain
Architecture Layer
Bucket
arch/hexagon
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_SWITCH_TO_H
#define _ASM_SWITCH_TO_H

struct thread_struct;

extern struct task_struct *__switch_to(struct task_struct *,
	struct task_struct *,
	struct task_struct *);

#define switch_to(p, n, r) do {\
	r = __switch_to((p), (n), (r));\
} while (0)

#endif /* _ASM_SWITCH_TO_H */

Annotation

Implementation Notes