patch-1.3.5 linux/arch/i386/kernel/setup.c

Next file: linux/arch/i386/kernel/traps.c
Previous file: linux/arch/i386/kernel/process.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.4/linux/arch/i386/kernel/setup.c linux/arch/i386/kernel/setup.c
@@ -56,7 +56,7 @@
 unsigned char aux_device_present;
 extern int ramdisk_size;
 extern int root_mountflags;
-extern int etext, edata, end;
+extern int _etext, _edata, _end;
 
 extern char empty_zero_page[PAGE_SIZE];
 
@@ -96,11 +96,11 @@
 #endif
 	if (MOUNT_ROOT_RDONLY)
 		root_mountflags |= MS_RDONLY;
-	memory_start = (unsigned long) &end;
+	memory_start = (unsigned long) &_end;
 	init_task.mm->start_code = TASK_SIZE;
-	init_task.mm->end_code = TASK_SIZE + (unsigned long) &etext;
-	init_task.mm->end_data = TASK_SIZE + (unsigned long) &edata;
-	init_task.mm->brk = TASK_SIZE + (unsigned long) &end;
+	init_task.mm->end_code = TASK_SIZE + (unsigned long) &_etext;
+	init_task.mm->end_data = TASK_SIZE + (unsigned long) &_edata;
+	init_task.mm->brk = TASK_SIZE + (unsigned long) &_end;
 
 	for (;;) {
 		if (c == ' ' && *(unsigned long *)from == *(unsigned long *)"mem=") {

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