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

[Xen-changelog] [xen-unstable] [MINIOS] Switched to new interface for HYPERVISOR_sched_op().



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID d9c8a18624fbe0a3b6fed361b638d8071741d33a
# Parent  8795be1653c911bf33682bf81a3ce4250c5f9a8e
[MINIOS] Switched to new interface for HYPERVISOR_sched_op().
Signed-off-by: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
---
 extras/mini-os/include/x86/x86_32/hypercall-x86_32.h |    2 +-
 extras/mini-os/include/x86/x86_64/hypercall-x86_64.h |    2 +-
 extras/mini-os/kernel.c                              |    6 +++++-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff -r 8795be1653c9 -r d9c8a18624fb 
extras/mini-os/include/x86/x86_32/hypercall-x86_32.h
--- a/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h      Mon Nov 27 
10:14:45 2006 +0000
+++ b/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h      Mon Nov 27 
10:23:19 2006 +0000
@@ -167,7 +167,7 @@ HYPERVISOR_fpu_taskswitch(
 
 static inline int
 HYPERVISOR_sched_op(
-       int cmd, unsigned long arg)
+       int cmd, void *arg)
 {
        return _hypercall2(int, sched_op, cmd, arg);
 }
diff -r 8795be1653c9 -r d9c8a18624fb 
extras/mini-os/include/x86/x86_64/hypercall-x86_64.h
--- a/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h      Mon Nov 27 
10:14:45 2006 +0000
+++ b/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h      Mon Nov 27 
10:23:19 2006 +0000
@@ -171,7 +171,7 @@ HYPERVISOR_fpu_taskswitch(
 
 static inline int
 HYPERVISOR_sched_op(
-       int cmd, unsigned long arg)
+       int cmd, void *arg)
 {
        return _hypercall2(int, sched_op, cmd, arg);
 }
diff -r 8795be1653c9 -r d9c8a18624fb extras/mini-os/kernel.c
--- a/extras/mini-os/kernel.c   Mon Nov 27 10:14:45 2006 +0000
+++ b/extras/mini-os/kernel.c   Mon Nov 27 10:23:19 2006 +0000
@@ -159,5 +159,9 @@ void do_exit(void)
 void do_exit(void)
 {
     printk("Do_exit called!\n");
-    for ( ;; ) HYPERVISOR_sched_op(SCHEDOP_shutdown, SHUTDOWN_crash);
+    for( ;; )
+    {
+        struct sched_shutdown sched_shutdown = { .reason = SHUTDOWN_crash };
+        HYPERVISOR_sched_op(SCHEDOP_shutdown, &sched_shutdown);
+    }
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.