- Timestamp:
- 2005-10-18T09:33:02Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8005218
- Parents:
- 22f7769
- Location:
- arch/ia64
- Files:
-
- 2 edited
-
include/context.h (modified) (5 diffs)
-
src/context.S (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/include/context.h
r22f7769 r4b2c872d 31 31 32 32 #include <arch/types.h> 33 #include <typedefs.h> 33 34 #include <align.h> 34 35 … … 51 52 (c)->pc = (__address) _pc; \ 52 53 (c)->bsp = ((__address) stack) + ALIGN(sizeof(the_t), STACK_ALIGNMENT); \ 53 (c)->sp = ((__address) stack) + ALIGN((size) - SP_DELTA, STACK_ALIGNMENT);54 (c)->sp = ((__address) stack) + ALIGN((size), STACK_ALIGNMENT) - SP_DELTA; 54 55 55 56 /* … … 66 67 __u64 ar_unat_callee; 67 68 __u64 ar_rsc; 68 __ u64 bsp;/* ar_bsp */69 __address bsp; /* ar_bsp */ 69 70 __u64 ar_rnat; 70 71 __u64 ar_lc; … … 78 79 __u64 r6; 79 80 __u64 r7; 80 __ u64sp; /* r12 */81 __address sp; /* r12 */ 81 82 __u64 r13; 82 83 … … 84 85 * Branch registers 85 86 */ 86 __ u64pc; /* b0 */87 __address pc; /* b0 */ 87 88 __u64 b1; 88 89 __u64 b2; -
arch/ia64/src/context.S
r22f7769 r4b2c872d 29 29 .text 30 30 31 .global context_save 32 .global context_restore 31 .global context_save_arch 32 .global context_restore_arch 33 33 34 context_save :34 context_save_arch: 35 35 alloc loc0 = ar.pfs, 1, 8, 0, 0 36 36 mov loc1 = ar.unat ;; … … 113 113 br.ret.sptk.many b0 114 114 115 context_restore :115 context_restore_arch: 116 116 alloc loc0 = ar.pfs, 1, 8, 0, 0 ;; 117 117
Note:
See TracChangeset
for help on using the changeset viewer.
