URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-parisc/] [current.h] - Rev 1774
Go to most recent revision | Compare with Previous | Blame | View Log
#ifndef _PARISC_CURRENT_H #define _PARISC_CURRENT_H #include <asm/processor.h> struct task_struct; static inline struct task_struct * get_current(void) { register unsigned long cr; __asm__ __volatile__("mfctl %%cr30,%0" : "=r" (cr) ); return (struct task_struct *)cr; } #define current get_current() #endif /* !(_PARISC_CURRENT_H) */
Go to most recent revision | Compare with Previous | Blame | View Log