Changeset 8d25b44 in mainline for arch/amd64/src/asm_utils.S
- Timestamp:
- 2006-03-20T10:51:57Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1b109cb
- Parents:
- ad64a2d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/asm_utils.S
rad64a2d r8d25b44 122 122 # Push all general purpose registers on stack except %rbp, %rsp 123 123 .macro save_all_gpr 124 movq %rbp, IOFFSET_RBP(%rsp)125 124 movq %rax, IOFFSET_RAX(%rsp) 126 movq %rbx, IOFFSET_RBX(%rsp)127 125 movq %rcx, IOFFSET_RCX(%rsp) 128 126 movq %rdx, IOFFSET_RDX(%rsp) … … 133 131 movq %r10, IOFFSET_R10(%rsp) 134 132 movq %r11, IOFFSET_R11(%rsp) 133 #ifdef CONFIG_DEBUG_ALLREGS 134 movq %rbx, IOFFSET_RBX(%rsp) 135 movq %rbp, IOFFSET_RBP(%rsp) 135 136 movq %r12, IOFFSET_R12(%rsp) 136 137 movq %r13, IOFFSET_R13(%rsp) 137 138 movq %r14, IOFFSET_R14(%rsp) 138 139 movq %r15, IOFFSET_R15(%rsp) 140 #endif 139 141 .endm 140 142 141 143 .macro restore_all_gpr 142 movq IOFFSET_RBP(%rsp), %rbp143 144 movq IOFFSET_RAX(%rsp), %rax 144 movq IOFFSET_RBX(%rsp), %rbx145 145 movq IOFFSET_RCX(%rsp), %rcx 146 146 movq IOFFSET_RDX(%rsp), %rdx … … 151 151 movq IOFFSET_R10(%rsp), %r10 152 152 movq IOFFSET_R11(%rsp), %r11 153 #ifdef CONFIG_DEBUG_ALLREGS 154 movq IOFFSET_RBX(%rsp), %rbx 155 movq IOFFSET_RBP(%rsp), %rbp 153 156 movq IOFFSET_R12(%rsp), %r12 154 157 movq IOFFSET_R13(%rsp), %r13 155 158 movq IOFFSET_R14(%rsp), %r14 156 159 movq IOFFSET_R15(%rsp), %r15 160 #endif 157 161 .endm 158 162 163 #ifdef CONFIG_DEBUG_ALLREGS 164 # define INTERRUPT_ALIGN 256 165 #else 166 # define INTERRUPT_ALIGN 128 167 #endif 168 159 169 ## Declare interrupt handlers 160 170 # … … 181 191 */ 182 192 subq $IREGISTER_SPACE, %rsp 183 nop184 nop185 nop186 193 .else 187 194 /* … … 208 215 iretq 209 216 217 .align INTERRUPT_ALIGN 210 218 .if (\n-\i)-1 211 219 handler "(\i+1)",\n 212 220 .endif 213 221 .endm 214 222 223 .align INTERRUPT_ALIGN 215 224 interrupt_handlers: 216 225 h_start:
Note:
See TracChangeset
for help on using the changeset viewer.