linux-old/include/asm-cris/current.h
<<
>>
Prefs
   1#ifndef _CRIS_CURRENT_H
   2#define _CRIS_CURRENT_H
   3
   4struct task_struct;
   5
   6static inline struct task_struct * get_current(void)
   7{
   8        struct task_struct *current;
   9        __asm__("and.d $sp,%0; ":"=r" (current) : "0" (~8191UL));
  10        return current;
  11 }
  12 
  13#define current get_current()
  14
  15#endif /* !(_CRIS_CURRENT_H) */
  16
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.