Changeset 23d22eb in mainline for arch/amd64/src
- Timestamp:
- 2006-03-17T11:55:43Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bd72b475
- Parents:
- 4e49572
- Location:
- arch/amd64/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/debugger.c
r4e49572 r23d22eb 192 192 } 193 193 194 #ifdef amd64 195 # define getip(x) ((x)->rip) 196 #else 197 # define getip(x) ((x)->eip) 198 #endif 199 194 200 static void handle_exception(int slot, istate_t *istate) 195 201 { … … 208 214 } 209 215 } 210 printf("Reached breakpoint %d:%P(%s)\n", slot, istate->rip,211 get_symtab_entry( istate->rip));216 printf("Reached breakpoint %d:%P(%s)\n", slot, getip(istate), 217 get_symtab_entry(getip(istate))); 212 218 printf("***Type 'exit' to exit kconsole.\n"); 213 219 atomic_set(&haltstate,1); … … 222 228 223 229 /* Set RF to restart the instruction */ 230 #ifdef amd64 224 231 istate->rflags |= RFLAGS_RF; 232 #else 233 istate->eflags |= EFLAGS_RF; 234 #endif 225 235 226 236 dr6 = read_dr6(); -
arch/amd64/src/proc/scheduler.c
r4e49572 r23d22eb 39 39 CPU->arch.tss->rsp0 = (__address) &THREAD->kstack[THREAD_STACK_SIZE-SP_DELTA]; 40 40 41 /* Syscall support - write thread address to hidden part of gs */41 /* Syscall support - write thread stack address to hidden part of gs */ 42 42 swapgs(); 43 43 write_msr(AMD_MSR_GS,
Note:
See TracChangeset
for help on using the changeset viewer.