Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 180 → Rev 177

/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
/SPARTAN/trunk/arch/ia64/include/context.h
31,15 → 31,11
 
#include <arch/types.h>
 
#define STACK_ITEM_SIZE 16
 
/*
* context_save() and context_restore() are both leaf procedures.
* No need to allocate scratch area.
*
* One item is put onto the stack to support get_stack_base().
*/
#define SP_DELTA (0+STACK_ITEM_SIZE)
#define SP_DELTA 0
 
#ifdef context_set
#undef context_set