/SPARTAN/trunk/arch/ia64/include/context.h |
---|
30,8 → 30,10 |
#define __ia64_CONTEXT_H__ |
#include <arch/types.h> |
#include <align.h> |
#define STACK_ITEM_SIZE 16 |
#define STACK_ALIGNMENT 16 |
/* |
* context_save() and context_restore() are both leaf procedures. |
47,7 → 49,7 |
#define context_set(c, _pc, stack, size) \ |
(c)->pc = (__address) _pc; \ |
(c)->bsp = ((__address) stack) + (sizeof(the_t)); \ |
(c)->bsp = ((__address) stack) + (ALIGN(sizeof(the_t), STACK_ALIGNMENT)); \ |
(c)->sp = ((__address) stack) + (size) - SP_DELTA; |
/* |