Changeset b6d4566 in mainline for arch/ia64/include/context.h
- Timestamp:
- 2006-03-27T16:56:51Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ff75d34
- Parents:
- 50fe620
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/include/context.h
r50fe620 rb6d4566 37 37 38 38 /* 39 * context_save () and context_restore() are both leaf procedures.39 * context_save_arch() and context_restore_arch() are both leaf procedures. 40 40 * No need to allocate scratch area. 41 41 * … … 48 48 #endif 49 49 50 /*RSE stack should begin under bottom of stack @ kernel*/ 51 #define context_set(c, _pc, stack, size) \ 52 (c)->pc = (__address) _pc; \ 53 (c)->bsp = ((__address) stack) + ALIGN_UP((size), STACK_ALIGNMENT) ; \ 54 (c)->ar_pfs &= PFM_MASK; \ 55 (c)->sp = ((__address) stack) + ALIGN_UP((size), STACK_ALIGNMENT) - SP_DELTA; 50 /* RSE stack starts at the bottom of memory stack. */ 51 #define context_set(c, _pc, stack, size) \ 52 do { \ 53 (c)->pc = (__address) _pc; \ 54 (c)->bsp = ((__address) stack) + ALIGN_UP((size), REGISTER_STACK_ALIGNMENT); \ 55 (c)->ar_pfs &= PFM_MASK; \ 56 (c)->sp = ((__address) stack) + ALIGN_UP((size), STACK_ALIGNMENT) - SP_DELTA; \ 57 } while (0); 56 58 57 59 /* … … 123 125 }; 124 126 125 126 127 127 #endif
Note:
See TracChangeset
for help on using the changeset viewer.