# HG changeset patch
# User fred@xxxxxxxxxxxxxxxxxxxxx
# Node ID 8fc64b82dd35f0b8ed91ef677f496b92a43b02f7
# Parent a64dae7a0344db63f33c9403fa7f2fd59dde32cd
More syntactic changes for preparation of vcpu_info merge
Signed-off-by Kevin Tian <Kevin.Tian@xxxxxxxxx>
diff -r a64dae7a0344 -r 8fc64b82dd35 xen/arch/ia64/domain.c
--- a/xen/arch/ia64/domain.c Thu Jul 28 09:26:30 2005
+++ b/xen/arch/ia64/domain.c Thu Jul 28 09:48:15 2005
@@ -312,9 +312,9 @@
// this should be in userspace
regs->r28 = dom_fw_setup(v->domain,"nomca nosmp xencons=tty0
console=tty0 root=/dev/hda1",256L); //FIXME
- v->vcpu_info->arch.banknum = 1;
- v->vcpu_info->arch.metaphysical_mode = 1;
v->arch.domain_itm_last = -1L;
+ VCPU(v, banknum) = 1;
+ VCPU(v, metaphysical_mode) = 1;
v->domain->shared_info->arch = c->shared;
return 0;
@@ -450,8 +450,8 @@
VPD_CR(v, dcr) = 0;
} else {
regs->r28 = dom_fw_setup(d,saved_command_line,256L);
- v->vcpu_info->arch.banknum = 1;
- v->vcpu_info->arch.metaphysical_mode = 1;
+ VCPU(v, banknum) = 1;
+ VCPU(v, metaphysical_mode) = 1;
d->shared_info->arch.flags = (d == dom0) ?
(SIF_INITDOMAIN|SIF_PRIVILEGED|SIF_BLK_BE_DOMAIN|SIF_NET_BE_DOMAIN|SIF_USB_BE_DOMAIN)
: 0;
}
}
@@ -483,8 +483,8 @@
regs->ar_fpsr = FPSR_DEFAULT;
init_all_rr(v);
regs->r28 = dom_fw_setup(d,saved_command_line,256L); //FIXME
- v->vcpu_info->arch.banknum = 1;
- v->vcpu_info->arch.metaphysical_mode = 1;
+ VCPU(v, banknum) = 1;
+ VCPU(v, metaphysical_mode) = 1;
d->shared_info->arch.flags = (d == dom0) ?
(SIF_INITDOMAIN|SIF_PRIVILEGED|SIF_BLK_BE_DOMAIN|SIF_NET_BE_DOMAIN|SIF_USB_BE_DOMAIN)
: 0;
}
#endif // CONFIG_VTI
@@ -1073,12 +1073,12 @@
#endif
serial_input_init();
if (d == dom0) {
- v->vcpu_info->arch.delivery_mask[0] = -1L;
- v->vcpu_info->arch.delivery_mask[1] = -1L;
- v->vcpu_info->arch.delivery_mask[2] = -1L;
- v->vcpu_info->arch.delivery_mask[3] = -1L;
+ VCPU(v, delivery_mask[0]) = -1L;
+ VCPU(v, delivery_mask[1]) = -1L;
+ VCPU(v, delivery_mask[2]) = -1L;
+ VCPU(v, delivery_mask[3]) = -1L;
}
- else __set_bit(0x30,v->vcpu_info->arch.delivery_mask);
+ else __set_bit(0x30,VCPU(v, delivery_mask));
return 0;
}
@@ -1234,12 +1234,12 @@
#endif
serial_input_init();
if (d == dom0) {
- v->vcpu_info->arch.delivery_mask[0] = -1L;
- v->vcpu_info->arch.delivery_mask[1] = -1L;
- v->vcpu_info->arch.delivery_mask[2] = -1L;
- v->vcpu_info->arch.delivery_mask[3] = -1L;
- }
- else __set_bit(0x30,v->vcpu_info->arch.delivery_mask);
+ VCPU(v, delivery_mask[0]) = -1L;
+ VCPU(v, delivery_mask[1]) = -1L;
+ VCPU(v, delivery_mask[2]) = -1L;
+ VCPU(v, delivery_mask[3]) = -1L;
+ }
+ else __set_bit(0x30, VCPU(v, delivery_mask));
return 0;
}
@@ -1286,7 +1286,7 @@
#endif
new_thread(v, pkern_entry, 0, 0);
printk("new_thread returns\n");
- __set_bit(0x30,v->vcpu_info->arch.delivery_mask);
+ __set_bit(0x30, VCPU(v, delivery_mask));
return 0;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|