Changeset 1b03ed3 in mainline for kernel/arch/ia64/src/ivt.S
- Timestamp:
- 2007-11-16T16:20:45Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 454889c
- Parents:
- 9c2fb97
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/src/ivt.S
r9c2fb97 r1b03ed3 34 34 35 35 #define FRS_TO_SAVE 30 36 #define STACK_ITEMS ( 19 + FRS_TO_SAVE*2)36 #define STACK_ITEMS (21 + FRS_TO_SAVE * 2) 37 37 #define STACK_FRAME_SIZE ALIGN_UP((STACK_ITEMS*STACK_ITEM_SIZE) + STACK_SCRATCH_AREA_SIZE, STACK_ALIGNMENT) 38 38 … … 136 136 */ 137 137 mov R_TMP = 0x2c00 ;; 138 cmp.eq p6, p5 = R_OFFS, R_TMP ;;139 140 /* 141 * From now on, if this is break_instruction handler, p6 is true and p5 is false.142 * Otherwise p6 is false and p5 is true.138 cmp.eq p6, p5 = R_OFFS, R_TMP ;; 139 140 /* 141 * From now on, if this is break_instruction handler, p6 is true and p5 142 * is false. Otherwise p6 is false and p5 is true. 143 143 * Note that p5 is a preserved predicate register and we make use of it. 144 144 */ 145 145 146 (p6) st8 [r31] = r38, -8 ;; /* save in6 */ 147 (p6) st8 [r31] = r37, -8 ;; /* save in5 */ 146 148 (p6) st8 [r31] = r36, -8 ;; /* save in4 */ 147 149 (p6) st8 [r31] = r35, -8 ;; /* save in3 */ … … 149 151 (p6) st8 [r31] = r33, -8 ;; /* save in1 */ 150 152 (p6) st8 [r31] = r32, -8 ;; /* save in0 */ 151 (p5) add r31 = - 40, r31 ;;153 (p5) add r31 = -56, r31 ;; 152 154 153 155 st8 [r31] = r30, -8 ;; /* save old stack pointer */ … … 179 181 180 182 /* 181 * Inspect BSPSTORE to figure out whether it is necessary to switch to kernel BSPSTORE. 183 * Inspect BSPSTORE to figure out whether it is necessary to switch to 184 * kernel BSPSTORE. 182 185 */ 183 186 (p1) shr.u r30 = r28, VRN_SHIFT ;; … … 206 209 207 210 /* 16. RSE switch to interrupted context */ 208 cover /* allocate zer ro size frame (step 1 (from Intel Docs)) */209 210 add r31 = (STACK_SCRATCH_AREA_SIZE +(FRS_TO_SAVE*2*8)), r12 ;;211 cover /* allocate zero size frame (step 1 (from Intel Docs)) */ 212 213 add r31 = (STACK_SCRATCH_AREA_SIZE + (FRS_TO_SAVE * 2 * 8)), r12 ;; 211 214 212 215 ld8 r30 = [r31], +8 ;; /* load ar.bsp */
Note:
See TracChangeset
for help on using the changeset viewer.