/*1* include/asm-xtensa/current.h2*3* This file is subject to the terms and conditions of the GNU General Public4* License. See the file "COPYING" in the main directory of this archive5* for more details.6*7* Copyright (C) 2001 - 2005 Tensilica Inc.8*/910#ifndef _XTENSA_CURRENT_H11#define _XTENSA_CURRENT_H1213#include <asm/thread_info.h>1415#ifndef __ASSEMBLER__1617#include <linux/thread_info.h>1819struct task_struct;2021static __always_inline struct task_struct *get_current(void)22{23return current_thread_info()->task;24}2526#define current get_current()2728register unsigned long current_stack_pointer __asm__("a1");2930#else3132#define GET_CURRENT(reg,sp) \33GET_THREAD_INFO(reg,sp); \34l32i reg, reg, TI_TASK \3536#endif373839#endif /* XTENSA_CURRENT_H */404142