microblaze_v8: headers files entry.h current.h mman.h registers.h sembuf.h
[linux-2.6/mini2440.git] / arch / microblaze / include / asm / current.h
blob8375ea991e2633900c16d3c63094b4eee5249041
1 /*
2 * Copyright (C) 2006 Atmark Techno, Inc.
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 */
9 #ifndef _ASM_MICROBLAZE_CURRENT_H
10 #define _ASM_MICROBLAZE_CURRENT_H
12 # ifndef __ASSEMBLY__
14 * Dedicate r31 to keeping the current task pointer
16 register struct task_struct *current asm("r31");
18 # define get_current() current
19 # endif /* __ASSEMBLY__ */
21 #endif /* _ASM_MICROBLAZE_CURRENT_H */