Skip to contentSkip to conversation

powerpc: print physical_start for the relocatable kernel

PATCH New Michael Neuling 1 participant 2 messages Oct 23, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: print physical_start for the relocatable kernel

Print physical start address for the relocatable kernel.

Also fixes this warning:
arch/powerpc/kernel/setup_64.c:447:5: warning: "kernstart_addr" is not defined

---
 arch/powerpc/kernel/setup_64.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

This is on top of Milton's patches kexec patches from here:
http://patchwork.ozlabs.org/patch/5382/

arch/powerpc/kernel/setup_64.c +3 -3
Index: linux-2.6-ozlabs/arch/powerpc/kernel/setup_64.c
===================================================================
@@ -444,9 +444,9 @@ void __init setup_system(void)
 	if (htab_address)
 		printk("htab_address                  = 0x%p\n", htab_address);
 	printk("htab_hash_mask                = 0x%lx\n", htab_hash_mask);
-#if PHYSICAL_START > 0
-	printk("physical_start                = 0x%lx\n", PHYSICAL_START);
-#endif
+	if(PHYSICAL_START > 0)
+		printk("physical_start                = 0x%lx\n",
+		       PHYSICAL_START);
 	printk("-----------------------------------------------------\n");
 
 	DBG(" <- setup_system()\n");
#1 lore raw

PATCH 1/1 powerpc: print physical_start for the relocatable kernel

Print physical start address for the relocatable kernel.

Also fixes this warning:
arch/powerpc/kernel/setup_64.c:447:5: warning: "kernstart_addr" is not defin

---
 arch/powerpc/kernel/setup_64.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

This fixes a small whitespace issue noticed by sfr.

arch/powerpc/kernel/setup_64.c +3 -3
Index: linux-2.6-ozlabs/arch/powerpc/kernel/setup_64.c
===================================================================
@@ -444,9 +444,9 @@ void __init setup_system(void)
 	if (htab_address)
 		printk("htab_address                  = 0x%p\n", htab_address);
 	printk("htab_hash_mask                = 0x%lx\n", htab_hash_mask);
-#if PHYSICAL_START > 0
-	printk("physical_start                = 0x%lx\n", PHYSICAL_START);
-#endif
+	if (PHYSICAL_START > 0)
+		printk("physical_start                = 0x%lx\n",
+		       PHYSICAL_START);
 	printk("-----------------------------------------------------\n");
 
 	DBG(" <- setup_system()\n");