minios: Correct HYPERVISOR_physdev_op()

A physdev_op is a two argument hypercall, taking a command parameter and an
optional pointer to a structure.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Andrew Cooper authored and Ian Campbell committed 2014-01-28 11:24:53 +00:00
1 parent 21b73527fb
commit 3c80caee18
2 files changed
+4 -4

No files matched your search

@@ -255,9 +255,9 @@ HYPERVISOR_console_io(
static inline int
HYPERVISOR_physdev_op(
void *physdev_op)
int cmd, void *physdev_op)
{
return _hypercall1(int, physdev_op, physdev_op);
return _hypercall2(int, physdev_op, cmd, physdev_op);
}
static inline int
@@ -256,9 +256,9 @@ HYPERVISOR_console_io(
static inline int
HYPERVISOR_physdev_op(
void *physdev_op)
int cmd, void *physdev_op)
{
return _hypercall1(int, physdev_op, physdev_op);
return _hypercall2(int, physdev_op, cmd, physdev_op);
}
static inline int
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.