Changeset 8d25b44 in mainline
- 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
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rad64a2d r8d25b44 75 75 ifeq ($(CONFIG_FPU_LAZY),y) 76 76 DEFS += -DCONFIG_FPU_LAZY 77 endif 78 ifeq ($(CONFIG_DEBUG_ALLREGS),y) 79 DEFS += -DCONFIG_DEBUG_ALLREGS 77 80 endif 78 81 -
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: -
arch/mips32/src/start.S
rad64a2d r8d25b44 70 70 sw $at, EOFFSET_HI(\r) 71 71 72 #ifdef CONFIG_DEBUG_ALLREGS 72 73 sw $s0,EOFFSET_S0(\r) 73 74 sw $s1,EOFFSET_S1(\r) … … 78 79 sw $s6,EOFFSET_S6(\r) 79 80 sw $s7,EOFFSET_S7(\r) 80 sw $s8,EOFFSET_S8(\r) 81 sw $s8,EOFFSET_S8(\r) 82 #endif 83 81 84 sw $gp,EOFFSET_GP(\r) 82 85 sw $ra,EOFFSET_RA(\r) … … 106 109 lw $t8,EOFFSET_T8(\r) 107 110 lw $t9,EOFFSET_T9(\r) 111 112 #ifdef CONFIG_DEBUG_ALLREGS 108 113 lw $s0,EOFFSET_S0(\r) 109 114 lw $s1,EOFFSET_S1(\r) … … 115 120 lw $s7,EOFFSET_S7(\r) 116 121 lw $s8,EOFFSET_S8(\r) 122 #endif 117 123 lw $gp,EOFFSET_GP(\r) 118 124 lw $ra,EOFFSET_RA(\r) -
kernel.config
rad64a2d r8d25b44 74 74 ! [CONFIG_DEBUG=y&(ARCH=amd64|ARCH=ia32)] CONFIG_DEBUG_AS_WATCHPOINT (y/n) 75 75 76 # Save all interrupt registers 77 ! [CONFIG_DEBUG=y&(ARCH=amd64|ARCH=mips)] CONFIG_DEBUG_ALLREGS (y/n) 78 76 79 ## Run-time configuration directives 77 80
Note:
See TracChangeset
for help on using the changeset viewer.