[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 5 of 5] Modify init_vm86_tss() to take advantage of the new set_param() function
# HG changeset patch # User Paul Durrant <paul.durrant@xxxxxxxxxx> # Date 1322482489 0 # Node ID 57100f663da56491619ac6f49eae17f9dd5a71e9 # Parent c4613164ee1c5f3bf2085008359ebb5b7924c660 Modify init_vm86_tss() to take advantage of the new set_param() function. Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx> diff -r c4613164ee1c -r 57100f663da5 tools/firmware/hvmloader/hvmloader.c --- a/tools/firmware/hvmloader/hvmloader.c Mon Nov 28 12:14:49 2011 +0000 +++ b/tools/firmware/hvmloader/hvmloader.c Mon Nov 28 12:14:49 2011 +0000 @@ -344,14 +344,11 @@ static void cmos_write_memory_size(void) static void init_vm86_tss(void) { void *tss; - struct xen_hvm_param p; tss = mem_alloc(128, 128); memset(tss, 0, 128); - p.domid = DOMID_SELF; - p.index = HVM_PARAM_VM86_TSS; - p.value = virt_to_phys(tss); - hypercall_hvm_op(HVMOP_set_param, &p); + + set_param(HVM_PARAM_VM86_TSS, virt_to_phys(tss)); printf("vm86 TSS at %08lx\n", virt_to_phys(tss)); } _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |