mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86: Remove direct uses of 0x82 as HYPERCALL_VECTOR.
We have a macro; we should use it. Signed-off-by: Keir Fraser <keir@xen.org>
This commit is contained in:
1 parent
1d7b94fcb6
commit
8282a2822b
3 files changed
+5
-5
No files matched your search
@@ -1784,7 +1784,7 @@ unsigned long hypercall_create_continuation(
|
||||
|
||||
/* Ensure the hypercall trap instruction is re-executed. */
|
||||
if ( !is_hvm_vcpu(current) )
|
||||
regs->eip -= 2; /* re-execute 'syscall' / 'int 0x82' */
|
||||
regs->eip -= 2; /* re-execute 'syscall' / 'int $xx' */
|
||||
else
|
||||
current->arch.hvm_vcpu.hcall_preempted = 1;
|
||||
|
||||
|
||||
@@ -597,7 +597,7 @@ static void hypercall_page_initialise_ring1_kernel(void *hypercall_page)
|
||||
p = (char *)(hypercall_page + (i * 32));
|
||||
*(u8 *)(p+ 0) = 0xb8; /* mov $<i>,%eax */
|
||||
*(u32 *)(p+ 1) = i;
|
||||
*(u16 *)(p+ 5) = 0x82cd; /* int $0x82 */
|
||||
*(u16 *)(p+ 5) = (HYPERCALL_VECTOR << 8) | 0xcd; /* int $xx */
|
||||
*(u8 *)(p+ 7) = 0xc3; /* ret */
|
||||
}
|
||||
|
||||
@@ -610,7 +610,7 @@ static void hypercall_page_initialise_ring1_kernel(void *hypercall_page)
|
||||
*(u8 *)(p+ 0) = 0x50; /* push %eax */
|
||||
*(u8 *)(p+ 1) = 0xb8; /* mov $__HYPERVISOR_iret,%eax */
|
||||
*(u32 *)(p+ 2) = __HYPERVISOR_iret;
|
||||
*(u16 *)(p+ 6) = 0x82cd; /* int $0x82 */
|
||||
*(u16 *)(p+ 6) = (HYPERCALL_VECTOR << 8) | 0xcd; /* int $xx */
|
||||
}
|
||||
|
||||
void hypercall_page_initialise(struct domain *d, void *hypercall_page)
|
||||
|
||||
@@ -364,7 +364,7 @@ static void hypercall_page_initialise_ring1_kernel(void *hypercall_page)
|
||||
p = (char *)(hypercall_page + (i * 32));
|
||||
*(u8 *)(p+ 0) = 0xb8; /* mov $<i>,%eax */
|
||||
*(u32 *)(p+ 1) = i;
|
||||
*(u16 *)(p+ 5) = 0x82cd; /* int $0x82 */
|
||||
*(u16 *)(p+ 5) = (HYPERCALL_VECTOR << 8) | 0xcd; /* int $xx */
|
||||
*(u8 *)(p+ 7) = 0xc3; /* ret */
|
||||
}
|
||||
|
||||
@@ -377,7 +377,7 @@ static void hypercall_page_initialise_ring1_kernel(void *hypercall_page)
|
||||
*(u8 *)(p+ 0) = 0x50; /* push %eax */
|
||||
*(u8 *)(p+ 1) = 0xb8; /* mov $__HYPERVISOR_iret,%eax */
|
||||
*(u32 *)(p+ 2) = __HYPERVISOR_iret;
|
||||
*(u16 *)(p+ 6) = 0x82cd; /* int $0x82 */
|
||||
*(u16 *)(p+ 6) = (HYPERCALL_VECTOR << 8) | 0xcd; /* int $xx */
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||