OpenCores
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] - Blame information for rev 7

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 xianfeng
#ifdef __KERNEL__
2
#ifndef _OR32_CURRENT_H
3
#define _OR32_CURRENT_H
4
 
5
#if 0
6
/*
7
 * We keep `current' in r2 for speed.
8
 */
9
register struct task_struct *current asm ("r2");
10
#endif
11
 
12
#if 1
13
 
14
#include <linux/thread_info.h>
15
 
16
struct task_struct;
17
 
18
extern inline struct task_struct * get_current(void)
19
{
20
        return current_thread_info()->task;
21
}
22
 
23
#define current get_current()
24
 
25
#endif
26
 
27
 
28
#endif /* _OR32_CURRENT_H */
29
#endif /* __KERNEL__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.