VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / arch / alpha / kernel / setup.c
index d1f1e0c..71d2205 100644 (file)
@@ -39,6 +39,7 @@
 #include <linux/reboot.h>
 #endif
 #include <linux/notifier.h>
+#include <asm/setup.h>
 #include <asm/io.h>
 
 extern struct notifier_block *panic_notifier_list;
@@ -122,7 +123,6 @@ static void get_sysnames(unsigned long, unsigned long, unsigned long,
 static void determine_cpu_caches (unsigned int);
 
 static char command_line[COMMAND_LINE_SIZE];
-char saved_command_line[COMMAND_LINE_SIZE];
 
 /*
  * The format of "screen_info" is strange, and due to early
@@ -1246,9 +1246,9 @@ show_cpuinfo(struct seq_file *f, void *slot)
                       platform_string(), nr_processors);
 
 #ifdef CONFIG_SMP
-       seq_printf(f, "cpus active\t\t: %ld\n"
+       seq_printf(f, "cpus active\t\t: %d\n"
                      "cpu active mask\t\t: %016lx\n",
-                      num_online_cpus(), cpu_present_mask);
+                      num_online_cpus(), cpus_addr(cpu_possible_map)[0]);
 #endif
 
        show_cache_size (f, "L1 Icache", alpha_l1i_cacheshape);
@@ -1359,7 +1359,7 @@ determine_cpu_caches (unsigned int cpu_type)
                L1I = L1D = CSHAPE(8*1024, 5, 1);
                L3 = -1;
 
-               car = *(vuip) phys_to_virt (0x120000078);
+               car = *(vuip) phys_to_virt (0x120000078UL);
                size = 64*1024 * (1 << ((car >> 5) & 7));
                /* No typo -- 8 byte cacheline size.  Whodathunk.  */
                L2 = (car & 1 ? CSHAPE (size, 3, 1) : -1);
@@ -1374,7 +1374,7 @@ determine_cpu_caches (unsigned int cpu_type)
                L1I = L1D = CSHAPE(8*1024, 5, 1);
 
                /* Check the line size of the Scache.  */
-               sc_ctl = *(vulp) phys_to_virt (0xfffff000a8);
+               sc_ctl = *(vulp) phys_to_virt (0xfffff000a8UL);
                width = sc_ctl & 0x1000 ? 6 : 5;
                L2 = CSHAPE (96*1024, width, 3);
 
@@ -1406,7 +1406,7 @@ determine_cpu_caches (unsigned int cpu_type)
                }
                L3 = -1;
 
-               cbox_config = *(vulp) phys_to_virt (0xfffff00008);
+               cbox_config = *(vulp) phys_to_virt (0xfffff00008UL);
                size = 512*1024 * (1 << ((cbox_config >> 12) & 3));
 
 #if 0