Changeset 5c089c3a in mainline
- Timestamp:
- 2006-03-13T21:20:46Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 27810c5
- Parents:
- 631ca4d
- Location:
- arch/ia64
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/include/interrupt.h
r631ca4d r5c089c3a 71 71 __u64 in2; 72 72 __u64 in3; 73 __u64 in4; 73 74 } __attribute__ ((packed)); 74 75 -
arch/ia64/src/ia64.c
r631ca4d r5c089c3a 36 36 #include <arch/types.h> 37 37 #include <arch/context.h> 38 #include <arch/stack.h> 38 39 #include <arch/mm/page.h> 39 40 #include <mm/as.h> … … 84 85 rsc.mode = 3; /* eager mode */ 85 86 86 switch_to_userspace(entry, USTACK_ADDRESS+PAGE_SIZE- 1, USTACK_ADDRESS, psr.value, rsc.value);87 switch_to_userspace(entry, USTACK_ADDRESS+PAGE_SIZE-ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT), USTACK_ADDRESS, psr.value, rsc.value); 87 88 88 89 while (1) { -
arch/ia64/src/interrupt.c
r631ca4d r5c089c3a 187 187 } 188 188 189 if (istate->in 3< SYSCALL_END)190 return syscall_table[istate->in 3](istate->in0, istate->in1, istate->in2);189 if (istate->in4 < SYSCALL_END) 190 return syscall_table[istate->in4](istate->in0, istate->in1, istate->in2, istate->in3); 191 191 else 192 panic("Undefined syscall %d", istate->in 3);192 panic("Undefined syscall %d", istate->in4); 193 193 194 194 return -1; -
arch/ia64/src/ivt.S
r631ca4d r5c089c3a 33 33 #include <align.h> 34 34 35 #define STACK_ITEMS 1 835 #define STACK_ITEMS 19 36 36 #define STACK_FRAME_SIZE ALIGN_UP((STACK_ITEMS*STACK_ITEM_SIZE) + STACK_SCRATCH_AREA_SIZE, STACK_ALIGNMENT) 37 37 … … 131 131 * Note that p5 is a preserved predicate register and we make use of it. 132 132 */ 133 133 134 (p6) st8 [r31] = r36, -8 ;; /* save in4 */ 134 135 (p6) st8 [r31] = r35, -8 ;; /* save in3 */ 135 136 (p6) st8 [r31] = r34, -8 ;; /* save in2 */ 136 137 (p6) st8 [r31] = r33, -8 ;; /* save in1 */ 137 138 (p6) st8 [r31] = r32, -8 ;; /* save in0 */ 138 (p5) add r31 = - 32, r31 ;;139 (p5) add r31 = -40, r31 ;; 139 140 140 141 st8 [r31] = r30, -8 ;; /* save old stack pointer */
Note:
See TracChangeset
for help on using the changeset viewer.