Changeset 8005218 in mainline
- Timestamp:
- 2005-10-19T12:58:02Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 37e9dbd
- Parents:
- 4b2c872d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/include/context.h
r4b2c872d r8005218 34 34 #include <align.h> 35 35 36 #define STACK_ITEM_SIZE 16 37 #define STACK_ALIGNMENT 16 36 #define STACK_ITEM_SIZE 16 37 #define STACK_ALIGNMENT 16 38 #define REGISTER_STACK_ALIGNMENT 8 38 39 39 40 /* … … 45 46 #define SP_DELTA (0+STACK_ITEM_SIZE) 46 47 48 #define PFM_MASK (~0x3fffffffff) 49 47 50 #ifdef context_set 48 51 #undef context_set 49 52 #endif 50 53 51 #define context_set(c, _pc, stack, size) \ 52 (c)->pc = (__address) _pc; \ 53 (c)->bsp = ((__address) stack) + ALIGN(sizeof(the_t), STACK_ALIGNMENT); \ 54 #define context_set(c, _pc, stack, size) \ 55 (c)->pc = (__address) _pc; \ 56 (c)->bsp = ((__address) stack) + ALIGN(sizeof(the_t), REGISTER_STACK_ALIGNMENT); \ 57 (c)->ar_pfs &= PFM_MASK; \ 54 58 (c)->sp = ((__address) stack) + ALIGN((size), STACK_ALIGNMENT) - SP_DELTA; 55 59
Note:
See TracChangeset
for help on using the changeset viewer.