Path: blob/master/arch/microblaze/include/asm/current.h
26442 views
/* SPDX-License-Identifier: GPL-2.0 */1/*2* Copyright (C) 2008-2009 Michal Simek <[email protected]>3* Copyright (C) 2008-2009 PetaLogix4* Copyright (C) 2006 Atmark Techno, Inc.5*/67#ifndef _ASM_MICROBLAZE_CURRENT_H8#define _ASM_MICROBLAZE_CURRENT_H910/*11* Register used to hold the current task pointer while in the kernel.12* Any `call clobbered' register without a special meaning should be OK,13* but check asm/microblaze/kernel/entry.S to be sure.14*/15#define CURRENT_TASK r3116# ifndef __ASSEMBLY__17/*18* Dedicate r31 to keeping the current task pointer19*/20register struct task_struct *current asm("r31");2122# define get_current() current23# endif /* __ASSEMBLY__ */2425#endif /* _ASM_MICROBLAZE_CURRENT_H */262728