6 void PrintV3Segments(struct guest_info * info) {
7 struct v3_segments * segs = &(info->segments);
9 struct v3_segment * seg_ptr;
11 seg_ptr=(struct v3_segment *)segs;
13 char *seg_names[] = {"CS", "DS" , "ES", "FS", "GS", "SS" , "LDTR", "GDTR", "IDTR", "TR", NULL};
14 PrintDebug("Segments\n");
16 for (i = 0; seg_names[i] != NULL; i++) {
18 PrintDebug("\t%s: Sel=%x, base=%x, limit=%x (at 0x%x)\n", seg_names[i], seg_ptr[i].selector, (uint_t)seg_ptr[i].base, seg_ptr[i].limit, &seg_ptr[i]);
25 void PrintV3CtrlRegs(struct guest_info * info) {
26 struct v3_ctrl_regs * regs = &(info->ctrl_regs);
29 char * reg_names[] = {"CR0", "CR2", "CR3", "CR4", "CR8", "FLAGS", NULL};
31 reg_ptr= (v3_reg_t *)regs;
33 PrintDebug("32 bit Ctrl Regs:\n");
35 for (i = 0; reg_names[i] != NULL; i++) {
36 PrintDebug("\t%s=0x%x (at=0x%x)\n", reg_names[i], (uint_t)reg_ptr[i], ®_ptr[i]);
41 void PrintV3GPRs(struct guest_info * info) {
42 struct v3_gprs * regs = &(info->vm_regs);
45 char * reg_names[] = { "RDI", "RSI", "RBP", "RSP", "RBX", "RDX", "RCX", "RAX", NULL};
47 reg_ptr= (v3_reg_t *)regs;
49 PrintDebug("32 bit GPRs:\n");
51 for (i = 0; reg_names[i] != NULL; i++) {
52 PrintDebug("\t%s=0x%x (at 0x%x)\n", reg_names[i], (uint_t)reg_ptr[i], ®_ptr[i]);