source: trunk/packages/xen-3.1/xen-3.1/tools/ioemu/patches/qemu-bugfixes @ 34

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

Add xen and xen-common

File size: 1.8 KB
Line 
1Index: ioemu/console.c
2===================================================================
3--- ioemu.orig/console.c        2006-08-06 02:03:45.803444993 +0100
4+++ ioemu/console.c     2006-08-06 02:15:48.546894051 +0100
5@@ -505,7 +505,7 @@
6             c++;
7         }
8     }
9-    free(s->cells);
10+    qemu_free(s->cells);
11     s->cells = cells;
12 }
13 
14@@ -1032,11 +1032,21 @@
15     return !active_console->text_console;
16 }
17 
18+void set_color_table(DisplayState *ds)
19+{
20+    int i, j;
21+    for(j = 0; j < 2; j++) {
22+       for(i = 0; i < 8; i++) {
23+           color_table[j][i] =
24+               col_expand(ds, vga_get_color(ds, color_table_rgb[j][i]));
25+       }
26+    }
27+}
28+
29 CharDriverState *text_console_init(DisplayState *ds)
30 {
31     CharDriverState *chr;
32     TextConsole *s;
33-    int i,j;
34     static int color_inited;
35 
36     chr = qemu_mallocz(sizeof(CharDriverState));
37@@ -1058,12 +1068,7 @@
38     
39     if (!color_inited) {
40         color_inited = 1;
41-        for(j = 0; j < 2; j++) {
42-            for(i = 0; i < 8; i++) {
43-                color_table[j][i] = col_expand(s->ds,
44-                        vga_get_color(s->ds, color_table_rgb[j][i]));
45-            }
46-        }
47+        set_color_table(ds);
48     }
49     s->y_displayed = 0;
50     s->y_base = 0;
51Index: ioemu/vl.c
52===================================================================
53--- ioemu.orig/vl.c     2006-08-06 02:15:39.711878977 +0100
54+++ ioemu/vl.c  2006-08-06 02:15:48.550893605 +0100
55@@ -3671,6 +3671,7 @@
56             if (net_tap_fd_init(vlan, fd))
57                 ret = 0;
58         } else {
59+            ifname[0] = '\0';
60             get_param_value(ifname, sizeof(ifname), "ifname", p);
61             if (get_param_value(setup_script, sizeof(setup_script), "script", p) == 0) {
62                 pstrcpy(setup_script, sizeof(setup_script), DEFAULT_NETWORK_SCRIPT);
Note: See TracBrowser for help on using the repository browser.