]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commitdiff
Compilation fixes - helper2.c compiles now
authorIan Jackson <iwj@mariner.uk.xensource.com>
Wed, 4 Jun 2008 15:43:19 +0000 (16:43 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 4 Jun 2008 15:43:19 +0000 (16:43 +0100)
i386-dm/helper2.c
qemu-xen.h

index 491b94a89ba9a749eb032d368e87663e2b4c3bb6..4545372ca7307824250f9578ba71a458ed4e5fb9 100644 (file)
 
 #include "cpu.h"
 #include "exec-all.h"
+#include "hw.h"
+#include "pci.h"
+#include "console.h"
+#include "qemu-timer.h"
+#include "sysemu.h"
+#include "qemu-xen.h"
 
 //#define DEBUG_MMU
 
@@ -188,7 +194,7 @@ target_ulong cpu_get_phys_page_debug(CPUState *env, target_ulong addr)
 }
 
 //some functions to handle the io req packet
-void sp_info()
+void sp_info(void)
 {
     ioreq_t *req;
     int i;
@@ -404,7 +410,7 @@ void cpu_ioreq_timeoffset(CPUState *env, ioreq_t *req)
 
     time_offset += (unsigned long)req->data;
 
-    fprintf(logfile, "Time offset set %ld, added offset %ld\n", time_offset, req->data);
+    fprintf(logfile, "Time offset set %ld, added offset %lld\n", time_offset, req->data);
     sprintf(b, "%ld", time_offset);
     xenstore_vm_write(domid, "rtc/timeoffset", b);
 }
@@ -512,10 +518,9 @@ void cpu_handle_ioreq(void *opaque)
                fprintf(logfile, "shutdown requested in cpu_handle_ioreq\n");
                destroy_hvm_domain();
            }
-           if (reset_requested) {
+           if (qemu_reset_requested()) {
                fprintf(logfile, "reset requested in cpu_handle_ioreq.\n");
                qemu_system_reset();
-               reset_requested = 0;
            }
        }
 
index 6650e632203b39922124571f18098cc382246e11..06d8ec9f4c41695dba08cf8c68500878f0d051d5 100644 (file)
@@ -23,6 +23,9 @@ void timeoffset_get(void);
 void pci_xen_platform_init(PCIBus *bus);
 #endif
 
+
+void destroy_hvm_domain(void);
+
 #ifdef __ia64__
 static inline void xc_domain_shutdown_hook(int xc_handle, uint32_t domid)
 {