OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [LINUX_2_4_26_OR32/] [linux/] [linux-2.4/] [include/] [asm-i386/] [current.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef _I386_CURRENT_H
2
#define _I386_CURRENT_H
3
 
4
struct task_struct;
5
 
6
static inline struct task_struct * get_current(void)
7
{
8
        struct task_struct *current;
9
        __asm__("andl %%esp,%0; ":"=r" (current) : "0" (~8191UL));
10
        return current;
11
 }
12
 
13
#define current get_current()
14
 
15
#endif /* !(_I386_CURRENT_H) */

powered by: WebSVN 2.1.0

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