]> xenbits.xensource.com Git - xen.git/commitdiff
ioemu: Stub out direct-Linux-boot support for anything other than x86.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 14 Feb 2008 10:31:01 +0000 (10:31 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 14 Feb 2008 10:31:01 +0000 (10:31 +0000)
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
tools/ioemu/hw/pc.c

index 430d932942739afb8c2f5fa2ff2be00370ed46a9..c6ebc6780dac5495aa0fbfdbd056b37b084df8bc 100644 (file)
@@ -361,6 +361,7 @@ void bochs_bios_init(void)
     register_ioport_write(0x503, 1, 1, bochs_bios_write, NULL);
 }
 
+#if defined(__i386__) || defined(__x86_64__)
 /* Generate an initial boot sector which sets state and jump to
    a specified vector */
 static void generate_bootsect(uint32_t gpr[8], uint16_t segs[6], uint16_t ip)
@@ -718,6 +719,14 @@ static void load_linux(const char *kernel_filename,
 
     generate_bootsect(gpr, seg, 0);
 }
+#else /* __ia64__ */
+static void load_linux(const char *kernel_filename,
+                       const char *initrd_filename,
+                       const char *kernel_cmdline)
+{
+    /* Direct Linux boot is unsupported. */
+}
+#endif
 
 static void main_cpu_reset(void *opaque)
 {