summaryrefslogtreecommitdiff
path: root/release/src/linux/linux/include/asm-parisc/current.h
blob: eeda255514155320f88d978c7c89b38faf95cc1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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) */