Skip to contentSkip to conversation

Fix the issue of on x86_64, rhel4 can not get into runlevel 5.

PATCH New Ling, Xiaofeng 1 participant 1 message Nov 25, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix the issue of on x86_64, rhel4 can not get into runlevel 5.

Fix the issue of on x86_64, rhel4 can not get into runlevel 5. Xserver will scan pci and the cirrus VGA driver will register mmio each time, cause mmio array out of space.

# HG changeset patch
# User Xiaofeng Ling <[email protected]>
# Node ID 43babde5b5096f3b9a9ef0f73779927ac8f08c97
# Parent dc250958aebbe72d603f0e1584b12a0525f570e3 Fix the issue of on x86_64, rhel4 can not get into runlevel 5. Xserver will scan pci and the cirrus VGA driver will register mmio each time, cause mmio array out of space.

tools/ioemu/exec.c +9 -0
diff -r dc250958aebb -r 43babde5b509 tools/ioemu/exec.c
@@ -262,6 +262,15 @@
                                   unsigned long size,
                                   unsigned long phys_offset)
 {
+        int i;
+
+        for (i = 0; i < mmio_cnt; i++) { 
+            if(mmio[i].start == start_addr) {
+                mmio[i].io_index = phys_offset;
+                mmio[i].size = size;
+                return;
+            }
+        }
         if (mmio_cnt == MAX_MMIO) {
                 fprintf(logfile, "too many mmio regions\n");
                 exit(-1);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel