arch/parisc/include/asm/switch_to.h

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

File Facts

System
Linux kernel
Corpus path
arch/parisc/include/asm/switch_to.h
Extension
.h
Size
332 bytes
Lines
14
Domain
Architecture Layer
Bucket
arch/parisc
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 __PARISC_SWITCH_TO_H
#define __PARISC_SWITCH_TO_H

struct task_struct;

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

#define switch_to(prev, next, last) do {			\
	(last) = _switch_to(prev, next);			\
} while(0)

#endif /* __PARISC_SWITCH_TO_H */

Annotation

Implementation Notes