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

File: [Development] / linux-2.4-xfs / include / asm-parisc / 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 _PARISC_CURRENT_H
#define _PARISC_CURRENT_H

#include <asm/processor.h>

struct task_struct;

static inline struct task_struct * get_current(void)
{
	register unsigned long cr;

	__asm__ __volatile__("mfctl %%cr30,%0" : "=r" (cr) );
	return (struct task_struct *)cr;
}
 
#define current get_current()

#endif /* !(_PARISC_CURRENT_H) */