Path: blob/master/arch/microblaze/include/asm/current.h
15126 views
/*1* Copyright (C) 2008-2009 Michal Simek <[email protected]>2* Copyright (C) 2008-2009 PetaLogix3* Copyright (C) 2006 Atmark Techno, Inc.4*5* This file is subject to the terms and conditions of the GNU General Public6* License. See the file "COPYING" in the main directory of this archive7* for more details.8*/910#ifndef _ASM_MICROBLAZE_CURRENT_H11#define _ASM_MICROBLAZE_CURRENT_H1213/*14* Register used to hold the current task pointer while in the kernel.15* Any `call clobbered' register without a special meaning should be OK,16* but check asm/microblaze/kernel/entry.S to be sure.17*/18#define CURRENT_TASK r3119# ifndef __ASSEMBLY__20/*21* Dedicate r31 to keeping the current task pointer22*/23register struct task_struct *current asm("r31");2425# define get_current() current26# endif /* __ASSEMBLY__ */2728#endif /* _ASM_MICROBLAZE_CURRENT_H */293031