Path: blob/master/arch/xtensa/include/asm/current.h
15126 views
/*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#ifndef __ASSEMBLY__1415#include <linux/thread_info.h>1617struct task_struct;1819static inline struct task_struct *get_current(void)20{21return current_thread_info()->task;22}2324#define current get_current()2526#else2728#define CURRENT_SHIFT 132930#define GET_CURRENT(reg,sp) \31GET_THREAD_INFO(reg,sp); \32l32i reg, reg, TI_TASK \3334#endif353637#endif /* XTENSA_CURRENT_H */383940