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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-sh/] [current.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef __ASM_SH_CURRENT_H
2
#define __ASM_SH_CURRENT_H
3
 
4
/*
5
 * Copyright (C) 1999 Niibe Yutaka
6
 *
7
 */
8
 
9
struct task_struct;
10
 
11
static __inline__ struct task_struct * get_current(void)
12
{
13
        struct task_struct *current;
14
 
15
        __asm__("stc    r7_bank, %0"
16
                :"=r" (current));
17
 
18
        return current;
19
}
20
 
21
#define current get_current()
22
 
23
#endif /* __ASM_SH_CURRENT_H */

powered by: WebSVN 2.1.0

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