1 /* 2 * Copyright (C) 2006 Atmark Techno, Inc. 3 * 4 * This file is subject to the terms and conditions of the GNU General Public 5 * License. See the file "COPYING" in the main directory of this archive 6 * for more details. 7 */ 8 9 #ifndef _ASM_MICROBLAZE_CURRENT_H 10 #define _ASM_MICROBLAZE_CURRENT_H 11 12 # ifndef __ASSEMBLY__ 13 /* 14 * Dedicate r31 to keeping the current task pointer 15 */ 16 register struct task_struct *current asm("r31"); 17 18 # define get_current() current 19 # endif /* __ASSEMBLY__ */ 20 21 #endif /* _ASM_MICROBLAZE_CURRENT_H */ 22