OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-s390/] [current.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1276 phoenix
/*
2
 *  include/asm-s390/current.h
3
 *
4
 *  S390 version
5
 *    Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
6
 *    Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com)
7
 *
8
 *  Derived from "include/asm-i386/current.h"
9
 */
10
 
11
#ifndef _S390_CURRENT_H
12
#define _S390_CURRENT_H
13
 
14
#ifdef __KERNEL__
15
 
16
struct task_struct;
17
 
18
static inline struct task_struct * get_current(void)
19
{
20
        struct task_struct *current;
21
        __asm__("lhi   %0,-8192\n\t"
22
                "al    %0,0xc40"
23
                : "=&r" (current) : : "cc" );
24
        return current;
25
 }
26
 
27
#define current get_current()
28
 
29
#endif
30
 
31
#endif /* !(_S390_CURRENT_H) */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.