linux-old/include/asm-parisc/current.h
<<
>>
Prefs
   1#ifndef _PARISC_CURRENT_H
   2#define _PARISC_CURRENT_H
   3
   4#include <asm/processor.h>
   5
   6struct task_struct;
   7
   8static inline struct task_struct * get_current(void)
   9{
  10        struct task_struct *current;
  11
  12        asm("copy 30,%0" : "=r" (current));
  13        
  14        return (struct task_struct *)((long) current & ~(THREAD_SIZE-1));
  15}
  16 
  17#define current get_current()
  18
  19#endif /* !(_PARISC_CURRENT_H) */
  20
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.