Changeset 37050 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- May 12, 2011 1:46:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp
r37048 r37050 29 29 *******************************************************************************/ 30 30 #define LOG_GROUP LOG_GROUP_SUP_DRV 31 #if 132 # include "../../../Runtime/r0drv/darwin/the-darwin-kernel.h"33 #endif34 31 /* 35 32 * Deal with conflicts first. … … 268 265 LogRel(("VBoxDrv: register for sleep/wakeup events failed\n")); 269 266 270 #ifdef RT_ARCH_AMD64271 272 struct my_cpu_data_x86 *cpu;273 __asm__ volatile("movq %%gs:%P1,%0\n\t" : "=r" (cpu) : "i" (0): );274 printf("VBoxDrv AST debug begin - cpu=%p\n", cpu);275 # define DUMP_IT(memb, fmt) printf(" %2x - " #memb "=" fmt "\n", RT_OFFSETOF(struct my_cpu_data_x86, memb), cpu->memb)276 DUMP_IT(cpu_active_thread, " 0x%p");277 DUMP_IT(cpu_int_state, " 0x%p");278 DUMP_IT(cpu_active_stack, " 0x%lx");279 DUMP_IT(cpu_kernel_stack, " 0x%lx");280 DUMP_IT(cpu_int_stack_top, " 0x%lx");281 DUMP_IT(cpu_preemption_level, " 0x%x");282 DUMP_IT(cpu_simple_lock_count, " 0x%x");283 DUMP_IT(cpu_number, " 0x%x");284 DUMP_IT(cpu_phys_number, " 0x%x");285 DUMP_IT(cpu_id, " 0x%p");286 DUMP_IT(cpu_signals, " 0x%x");287 DUMP_IT(cpu_mcount_off, " 0x%x");288 DUMP_IT(cpu_pending_ast, " 0x%x");289 DUMP_IT(cpu_type, " 0x%x");290 DUMP_IT(cpu_subtype, " 0x%x");291 DUMP_IT(cpu_threadtype, " 0x%x");292 DUMP_IT(cpu_running, " 0x%x");293 printf("VBoxDrv AST debug end\n");294 # undef DUMP_IT295 #endif296 267 return KMOD_RETURN_SUCCESS; 297 268 }
Note:
See TracChangeset
for help on using the changeset viewer.