patch-1.3.5 linux/arch/i386/mm/init.c

Next file: linux/arch/mips/config.in
Previous file: linux/arch/i386/math-emu/wm_sqrt.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.4/linux/arch/i386/mm/init.c linux/arch/i386/mm/init.c
@@ -149,7 +149,7 @@
 	int reservedpages = 0;
 	int datapages = 0;
 	unsigned long tmp;
-	extern int etext;
+	extern int _etext;
 
 	end_mem &= PAGE_MASK;
 	high_memory = end_mem;
@@ -185,7 +185,7 @@
 		if (mem_map[MAP_NR(tmp)]) {
 			if (tmp >= 0xA0000 && tmp < 0x100000)
 				reservedpages++;
-			else if (tmp < (unsigned long) &etext)
+			else if (tmp < (unsigned long) &_etext)
 				codepages++;
 			else
 				datapages++;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this