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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef _PARISC_CURRENT_H
2
#define _PARISC_CURRENT_H
3
 
4
#include <asm/processor.h>
5
 
6
struct task_struct;
7
 
8
static inline struct task_struct * get_current(void)
9
{
10
        register unsigned long cr;
11
 
12
        __asm__ __volatile__("mfctl %%cr30,%0" : "=r" (cr) );
13
        return (struct task_struct *)cr;
14
}
15
 
16
#define current get_current()
17
 
18
#endif /* !(_PARISC_CURRENT_H) */

powered by: WebSVN 2.1.0

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