source: trunk/packages/xen-common/xen-common/tools/ioemu/patches/hypervisor-pit @ 34

Last change on this file since 34 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

File size: 1.8 KB
Line 
1Index: ioemu/Makefile.target
2===================================================================
3--- ioemu.orig/Makefile.target  2007-05-03 10:07:52.000000000 +0100
4+++ ioemu/Makefile.target       2007-05-03 10:07:53.000000000 +0100
5@@ -355,7 +355,7 @@
6 ifeq ($(TARGET_BASE_ARCH), i386)
7 # Hardware support
8 VL_OBJS+= ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)
9-VL_OBJS+= fdc.o mc146818rtc.o serial.o i8254.o pcspk.o pc.o
10+VL_OBJS+= fdc.o mc146818rtc.o serial.o pc.o
11 VL_OBJS+= cirrus_vga.o mixeng.o parallel.o acpi.o piix_pci.o
12 VL_OBJS+= usb-uhci.o
13 DEFINES += -DHAS_AUDIO
14Index: ioemu/hw/pc.c
15===================================================================
16--- ioemu.orig/hw/pc.c  2007-05-03 10:07:52.000000000 +0100
17+++ ioemu/hw/pc.c       2007-05-03 10:07:53.000000000 +0100
18@@ -38,7 +38,9 @@
19 
20 static fdctrl_t *floppy_controller;
21 static RTCState *rtc_state;
22+#ifndef CONFIG_DM
23 static PITState *pit;
24+#endif /* !CONFIG_DM */
25 #ifndef CONFIG_DM
26 static IOAPICState *ioapic;
27 #endif /* !CONFIG_DM */
28@@ -810,8 +812,10 @@
29     }
30 #endif /* !CONFIG_DM */
31     isa_pic = pic_init(pic_irq_request, first_cpu);
32+#ifndef CONFIG_DM
33     pit = pit_init(0x40, 0);
34     pcspk_init(pit);
35+#endif /* !CONFIG_DM */
36 #ifndef CONFIG_DM
37     if (pci_enabled) {
38         pic_set_alt_irq_func(isa_pic, ioapic_set_irq, ioapic);
39Index: ioemu/vl.c
40===================================================================
41--- ioemu.orig/vl.c     2007-05-03 10:07:53.000000000 +0100
42+++ ioemu/vl.c  2007-05-03 10:07:53.000000000 +0100
43@@ -5622,6 +5622,7 @@
44 
45 #ifdef HAS_AUDIO
46 struct soundhw soundhw[] = {
47+#ifndef CONFIG_DM
48 #ifdef TARGET_I386
49     {
50         "pcspk",
51@@ -5631,6 +5632,7 @@
52         { .init_isa = pcspk_audio_init }
53     },
54 #endif
55+#endif /* !CONFIG_DM */
56     {
57         "sb16",
58         "Creative Sound Blaster 16",
Note: See TracBrowser for help on using the repository browser.