~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/asm-parisc/current.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #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         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 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.