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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-arm/] [current.h] - Rev 1276

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

#ifndef _ASMARM_CURRENT_H
#define _ASMARM_CURRENT_H
 
static inline struct task_struct *get_current(void) __attribute__ (( __const__ ));
 
static inline struct task_struct *get_current(void)
{
	register unsigned long sp asm ("sp");
	return (struct task_struct *)(sp & ~0x1fff);
}
 
#define current (get_current())
 
#endif /* _ASMARM_CURRENT_H */
 

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

powered by: WebSVN 2.1.0

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