[BACK]Return to current.h CVS log [TXT][DIR] Up to [Development] / linux-2.4-xfs / include / asm-sh

File: [Development] / linux-2.4-xfs / include / asm-sh / current.h (download)

Revision 1.1, Wed Dec 31 00:54:49 2003 UTC (13 years, 9 months ago) by cattelan
Branch: MAIN
CVS Tags: HEAD

Initial Import 2.4.24pre2

#ifndef __ASM_SH_CURRENT_H
#define __ASM_SH_CURRENT_H

/*
 * Copyright (C) 1999 Niibe Yutaka
 *
 */

struct task_struct;

static __inline__ struct task_struct * get_current(void)
{
	struct task_struct *current;

	__asm__("stc	r7_bank, %0"
		:"=r" (current));

	return current;
}

#define current get_current()

#endif /* __ASM_SH_CURRENT_H */