Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 179 → Rev 180

/SPARTAN/trunk/arch/ia64/include/asm.h
32,10 → 32,19
#include <arch/types.h>
#include <config.h>
 
/* TODO: implement the real stuff */
/** 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.
*/
static inline __address get_stack_base(void)
{
return NULL;
__u64 v;
 
__asm__ volatile ("and %0 = %1, r12" : "=r" (v) : "r" (~(STACK_SIZE-1)));
return v;
}
 
#endif
/SPARTAN/trunk/arch/ia64/include/context.h
31,11 → 31,15
 
#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
#define SP_DELTA (0+STACK_ITEM_SIZE)
 
#ifdef context_set
#undef context_set