URL
https://opencores.org/ocsvn/or1k_soc_on_altera_embedded_dev_kit/or1k_soc_on_altera_embedded_dev_kit/trunk
Subversion Repositories or1k_soc_on_altera_embedded_dev_kit
[/] [or1k_soc_on_altera_embedded_dev_kit/] [trunk/] [linux-2.6/] [linux-2.6.24/] [include/] [asm-or32/] [current.h] - Rev 7
Compare with Previous | Blame | View Log
#ifdef __KERNEL__ #ifndef _OR32_CURRENT_H #define _OR32_CURRENT_H #if 0 /* * We keep `current' in r2 for speed. */ register struct task_struct *current asm ("r2"); #endif #if 1 #include <linux/thread_info.h> struct task_struct; extern inline struct task_struct * get_current(void) { return current_thread_info()->task; } #define current get_current() #endif #endif /* _OR32_CURRENT_H */ #endif /* __KERNEL__ */