]> xenbits.xensource.com Git - xen.git/commitdiff
minios: Fix an extern declaration and add an extra 'const' to
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 15 Mar 2007 15:27:08 +0000 (15:27 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 15 Mar 2007 15:27:08 +0000 (15:27 +0000)
definition of a constant set of constant error strings.
Issues identified by Armand Puccetti.
Signed-off-by: Keir Fraser <keir@xensource.com>
extras/mini-os/arch/x86/mm.c
extras/mini-os/gnttab.c

index d1508f8263cd3660f759e602c795f1703ff25e72..15ed4877a8af6573f1a1b2752e58b058fb67a8fd 100644 (file)
@@ -49,7 +49,7 @@
 #endif
 
 unsigned long *phys_to_machine_mapping;
-extern char *stack;
+extern char stack[];
 extern void page_walk(unsigned long virt_addr);
 
 void new_pt_frame(unsigned long *pt_pfn, unsigned long prev_l_mfn, 
@@ -453,7 +453,7 @@ void arch_init_mm(unsigned long* start_pfn_p, unsigned long* max_pfn_p)
     printk("  _text:        %p\n", &_text);
     printk("  _etext:       %p\n", &_etext);
     printk("  _edata:       %p\n", &_edata);
-    printk("  stack start:  %p\n", &stack);
+    printk("  stack start:  %p\n", stack);
     printk("  _end:         %p\n", &_end);
 
     /* First page follows page table pages and 3 more pages (store page etc) */
index 4d75897a98ab800ea9f4e5f122ce1350d2747305..b22f51ceaefdde6e7cfe5f95f053063b3a2027ab 100644 (file)
@@ -135,7 +135,7 @@ gnttab_alloc_and_grant(void **map)
     return gref;
 }
 
-static const char *gnttabop_error_msgs[] = GNTTABOP_error_msgs;
+static const char * const gnttabop_error_msgs[] = GNTTABOP_error_msgs;
 
 const char *
 gnttabop_error(int16_t status)