VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / arch / sparc64 / kernel / setup.c
index 0da4309..438e373 100644 (file)
@@ -47,6 +47,7 @@
 #include <asm/mmu_context.h>
 #include <asm/timer.h>
 #include <asm/sections.h>
+#include <asm/setup.h>
 
 #ifdef CONFIG_IP_PNP
 #include <net/ipconfig.h>
@@ -293,7 +294,7 @@ int prom_callback(long *args)
                unsigned long tte;
 
                tte = args[3];
-               prom_printf("%lx ", (tte & 0x07FC000000000000) >> 50);
+               prom_printf("%lx ", (tte & 0x07FC000000000000UL) >> 50);
 
                args[2] = 2;
                args[args[1] + 3] = 0;
@@ -451,8 +452,7 @@ extern unsigned short ram_flags;
 
 extern int root_mountflags;
 
-char saved_command_line[256];
-char reboot_command[256];
+char reboot_command[COMMAND_LINE_SIZE];
 
 static struct pt_regs fake_swapper_regs = { { 0, }, 0, 0, 0, 0 };