summaryrefslogtreecommitdiff
path: root/i386/i386/seg.h
diff options
context:
space:
mode:
Diffstat (limited to 'i386/i386/seg.h')
-rw-r--r--i386/i386/seg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/seg.h b/i386/i386/seg.h
index 01b1a2e..7f12cc0 100644
--- a/i386/i386/seg.h
+++ b/i386/i386/seg.h
@@ -180,8 +180,8 @@ fill_descriptor(struct real_descriptor *_desc, unsigned base, unsigned limit,
desc->granularity = sizebits;
desc->base_high = base >> 24;
#ifdef MACH_XEN
- if (hyp_do_update_descriptor(kv_to_ma(_desc), *(unsigned long long*)desc))
- panic("couldn't update descriptor(%p to %08lx%08lx)\n", kv_to_ma(_desc), *(((unsigned long*)desc)+1), *(unsigned long *)desc);
+ if (hyp_do_update_descriptor(kv_to_ma(_desc), *(uint64_t*)desc))
+ panic("couldn't update descriptor(%p to %08lx%08lx)\n", (vm_offset_t) kv_to_ma(_desc), *(((unsigned long*)desc)+1), *(unsigned long *)desc);
#endif /* MACH_XEN */
}