2 * include/asm-s390/current.h
5 * Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
6 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com)
8 * Derived from "include/asm-i386/current.h"
11 #ifndef _S390_CURRENT_H
12 #define _S390_CURRENT_H
18 static inline struct task_struct * get_current(void)
20 struct task_struct *current;
21 __asm__("lghi %0,-16384\n\t"
23 : "=&r" (current) : : "cc" );
27 #define current get_current()
31 #endif /* !(_S390_CURRENT_H) */