linux-old/include/asm-sh/current.h
<<
>>
Prefs
   1#ifndef __ASM_SH_CURRENT_H
   2#define __ASM_SH_CURRENT_H
   3
   4/*
   5 * Copyright (C) 1999 Niibe Yutaka
   6 *
   7 */
   8
   9struct task_struct;
  10
  11static __inline__ struct task_struct * get_current(void)
  12{
  13        struct task_struct *current;
  14
  15        __asm__("stc    r7_bank, %0"
  16                :"=r" (current));
  17
  18        return current;
  19}
  20
  21#define current get_current()
  22
  23#endif /* __ASM_SH_CURRENT_H */
  24
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.