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. |
45,9 → 47,9 |
#undef context_set |
#endif |
|
#define context_set(c, _pc, stack, size) \ |
(c)->pc = (__address) _pc; \ |
(c)->bsp = ((__address) stack) + (sizeof(the_t)); \ |
#define context_set(c, _pc, stack, size) \ |
(c)->pc = (__address) _pc; \ |
(c)->bsp = ((__address) stack) + (ALIGN(sizeof(the_t), STACK_ALIGNMENT)); \ |
(c)->sp = ((__address) stack) + (size) - SP_DELTA; |
|
/* |