};
#endif
-void pack_gate32(struct seg_gate32 *gate, unsigned type, uint32_t func,
- unsigned dpl, unsigned seg)
+void pack_gate32(struct seg_gate32 *gate, unsigned int type, uint32_t func,
+ unsigned int dpl, unsigned int seg)
{
gate->offset0 = func & 0xffff;
gate->selector = seg;
gate->offset1 = (func >> 16) & 0xffff;
}
-void pack_gate64(struct seg_gate64 *gate, unsigned type, uint64_t func,
- unsigned dpl, unsigned ist, unsigned seg)
+void pack_gate64(struct seg_gate64 *gate, unsigned int type, uint64_t func,
+ unsigned int dpl, unsigned int ist, unsigned int seg)
{
gate->offset0 = func & 0xffff;
gate->selector = seg;
uint16_t offset0;
uint16_t selector;
uint8_t _r0;
- unsigned type: 4, s: 1, dpl: 2, p: 1;
+ unsigned int type: 4, s: 1, dpl: 2, p: 1;
uint16_t offset1;
};
};
struct {
uint16_t offset0;
uint16_t selector;
- unsigned ist: 3, _r0: 5, type: 4, s: 1, dpl: 2, p: 1;
+ unsigned int ist: 3, _r0: 5, type: 4, s: 1, dpl: 2, p: 1;
uint16_t offset1;
uint32_t offset2;
uint32_t _r1;
return res;
}
-static char *number(char *str, char *end, long long val, unsigned base,
- int width, int precision, unsigned flags)
+static char *number(char *str, char *end, long long val, unsigned int base,
+ int width, int precision, unsigned int flags)
{
static const char lower[] = "0123456789abcdef";
static const char upper[] = "0123456789ABCDEF";
const char *spec_start = fmt; /* For rewinding on error. */
unsigned long long num;
- unsigned base, flags = 0;
+ unsigned int base, flags = 0;
int width = -1, precision = -1;
char length_mod = 'i';
return HYPERCALL2(long, __HYPERVISOR_memory_op, cmd, arg);
}
-static inline long hypercall_xen_version(unsigned cmd, void *arg)
+static inline long hypercall_xen_version(unsigned int cmd, void *arg)
{
return HYPERCALL2(long, __HYPERVISOR_xen_version, cmd, arg);
}
*/
static void check_buffer(const char *ref, const char *buf, size_t buf_sz)
{
- unsigned i;
+ unsigned int i;
size_t str_len = strnlen(buf, buf_sz);
if ( str_len == buf_sz )