Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 180 → Rev 179

/SPARTAN/trunk/arch/ia64/include/asm.h
32,19 → 32,10
#include <arch/types.h>
#include <config.h>
 
/** Return base address of current stack
*
* Return the base address of the current stack.
* The stack is assumed to be STACK_SIZE long.
* The stack must start on page boundary.
*/
/* TODO: implement the real stuff */
static inline __address get_stack_base(void)
{
__u64 v;
 
__asm__ volatile ("and %0 = %1, r12" : "=r" (v) : "r" (~(STACK_SIZE-1)));
return v;
return NULL;
}
 
#endif