arch/microblaze/include/asm/current.h

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

File Facts

System
Linux kernel
Corpus path
arch/microblaze/include/asm/current.h
Extension
.h
Size
716 bytes
Lines
27
Domain
Architecture Layer
Bucket
arch/microblaze
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_MICROBLAZE_CURRENT_H
#define _ASM_MICROBLAZE_CURRENT_H

/*
 * Register used to hold the current task pointer while in the kernel.
 * Any `call clobbered' register without a special meaning should be OK,
 * but check asm/microblaze/kernel/entry.S to be sure.
 */
#define CURRENT_TASK	r31
# ifndef __ASSEMBLER__
/*
 * Dedicate r31 to keeping the current task pointer
 */
register struct task_struct *current asm("r31");

# define get_current()	current
# endif /* __ASSEMBLER__ */

#endif /* _ASM_MICROBLAZE_CURRENT_H */

Annotation

Implementation Notes