patch-2.4.10 linux/fs/proc/kcore.c

Next file: linux/fs/proc/kmsg.c
Previous file: linux/fs/proc/generic.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/fs/proc/kcore.c linux/fs/proc/kcore.c
@@ -42,7 +42,7 @@
 	ssize_t count1;
 	char * pnt;
 	struct user dump;
-#if defined (__i386__) || defined (__mc68000__)
+#if defined (__i386__) || defined (__mc68000__) || defined(__x86_64__)
 #	define FIRST_MAPPED	PAGE_SIZE	/* we don't have page 0 mapped on x86.. */
 #else
 #	define FIRST_MAPPED	0
@@ -51,7 +51,7 @@
 	memset(&dump, 0, sizeof(struct user));
 	dump.magic = CMAGIC;
 	dump.u_dsize = (virt_to_phys(high_memory) >> PAGE_SHIFT);
-#if defined (__i386__)
+#if defined (__i386__) || defined(__x86_64__)
 	dump.start_code = PAGE_OFFSET;
 #endif
 #ifdef __alpha__
@@ -361,7 +361,7 @@
 		read_unlock(&vmlist_lock);
 
 	/* where page 0 not mapped, write zeros into buffer */
-#if defined (__i386__) || defined (__mc68000__)
+#if defined (__i386__) || defined (__mc68000__) || defined(__x86_64__)
 	if (*fpos < PAGE_SIZE + elf_buflen) {
 		/* work out how much to clear */
 		tsz = PAGE_SIZE + elf_buflen - *fpos;

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