]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Print 'avl' bits of a segment
authorPekka Enberg <penberg@cs.helsinki.fi>
Fri, 26 Mar 2010 16:36:30 +0000 (18:36 +0200)
committerPekka Enberg <penberg@cs.helsinki.fi>
Fri, 26 Mar 2010 16:36:30 +0000 (18:36 +0200)
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
tools/kvm/kvm.c

index b4ce2c0f492198f9dd8292cf9d9055c07e71c1df..ee581428992bd66f2d356b640253caef659984f8 100644 (file)
@@ -318,9 +318,9 @@ void kvm__emulate_io(struct kvm *self, uint16_t port, void *data, int direction,
 
 static void print_segment(const char *name, struct kvm_segment *seg)
 {
-       printf(" %s       %04" PRIx16 "      %016" PRIx64 "  %08" PRIx32 "  %02" PRIx8 "    %x %x   %x  %x %x %x\n",
+       printf(" %s       %04" PRIx16 "      %016" PRIx64 "  %08" PRIx32 "  %02" PRIx8 "    %x %x   %x  %x %x %x %x\n",
                name, (uint16_t) seg->selector, (uint64_t) seg->base, (uint32_t) seg->limit,
-               (uint8_t) seg->type, seg->present, seg->dpl, seg->db, seg->s, seg->l, seg->g);
+               (uint8_t) seg->type, seg->present, seg->dpl, seg->db, seg->s, seg->l, seg->g, seg->avl);
 }
 
 void kvm__show_registers(struct kvm *self)
@@ -367,7 +367,7 @@ void kvm__show_registers(struct kvm *self)
        printf(" cr0: %016lx   cr2: %016lx   cr3: %016lx\n", cr0, cr2, cr3);
        printf(" cr4: %016lx   cr8: %016lx\n", cr4, cr8);
        printf("Segment registers:\n");
-       printf(" register  selector  base              limit     type  p dpl db s l g\n");
+       printf(" register  selector  base              limit     type  p dpl db s l g avl\n");
        print_segment("cs ", &sregs.cs);
        print_segment("ss ", &sregs.ss);
        print_segment("ds ", &sregs.ds);