patch-2.4.25 linux-2.4.25/arch/ppc/kernel/setup.c

Next file: linux-2.4.25/arch/ppc/mm/pgtable.c
Previous file: linux-2.4.25/arch/ppc/kernel/ppc_ksyms.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/arch/ppc/kernel/setup.c linux-2.4.25/arch/ppc/kernel/setup.c
@@ -157,7 +157,7 @@
 	lpj = loops_per_jiffy;
 #endif
 
-	seq_printf(m, "processor\t: %lu\n", i);
+	seq_printf(m, "processor\t: %u\n", i);
 	seq_printf(m, "cpu\t\t: ");
 
 	if (cur_cpu_spec[i]->pvr_mask)
@@ -258,7 +258,7 @@
 unsigned long
 early_init(int r3, int r4, int r5)
 {
-	extern char __bss_start, _end;
+	extern char __bss_start[], _end[];
  	unsigned long phys;
 	unsigned long offset = reloc_offset();
 
@@ -267,7 +267,7 @@
 
 	/* First zero the BSS -- use memset, some arches don't have
 	 * caches on yet */
-	memset_io(PTRRELOC(&__bss_start), 0, &_end - &__bss_start);
+	memset_io(PTRRELOC(&__bss_start), 0, _end - __bss_start);
 
 	/*
 	 * Identify the CPU type and fix up code sections

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)