Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/include/amd64 hvm_op returns a signed value.



details:   https://anonhg.NetBSD.org/src/rev/59fed75a67f6
branches:  trunk
changeset: 447798:59fed75a67f6
user:      cherry <cherry%NetBSD.org@localhost>
date:      Thu Jan 24 04:11:38 2019 +0000

description:
hvm_op returns a signed value.

The pattern is that a hypercall which returns a value < 0 may imply an
error.

diffstat:

 sys/arch/xen/include/amd64/hypercalls.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r eea5021b7d70 -r 59fed75a67f6 sys/arch/xen/include/amd64/hypercalls.h
--- a/sys/arch/xen/include/amd64/hypercalls.h   Wed Jan 23 22:13:01 2019 +0000
+++ b/sys/arch/xen/include/amd64/hypercalls.h   Thu Jan 24 04:11:38 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hypercalls.h,v 1.8 2011/12/07 16:01:39 cegger Exp $ */
+/* $NetBSD: hypercalls.h,v 1.9 2019/01/24 04:11:38 cherry Exp $ */
 /******************************************************************************
  * hypercall.h
  * 
@@ -361,11 +361,11 @@
        return _hypercall2(int, nmi_op, op, arg);
 }
 
-static inline unsigned long
+static inline long
 HYPERVISOR_hvm_op(
     int op, void *arg)
 {
-    return _hypercall2(unsigned long, hvm_op, op, arg);
+    return _hypercall2(long, hvm_op, op, arg);
 }
 
 static inline int



Home | Main Index | Thread Index | Old Index