mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Dead code in i386/kernel/process.c
@ 2002-08-03 22:39 Brian Gerst
  2002-08-03 23:09 ` Brian Gerst
  2002-08-04 15:45 ` Jamie Lokier
  0 siblings, 2 replies; 3+ messages in thread
From: Brian Gerst @ 2002-08-03 22:39 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Linux-Kernel

[-- Attachment #1: Type: text/plain, Size: 110 bytes --]

This patch removes an artifact of code left over from the 2.0 days when 
the kernel didn't use flat segments.

[-- Attachment #2: pg0-1 --]
[-- Type: text/plain, Size: 597 bytes --]

diff -urN linux-2.5.30/arch/i386/kernel/process.c linux/arch/i386/kernel/process.c
--- linux-2.5.30/arch/i386/kernel/process.c	Fri Aug  2 10:15:28 2002
+++ linux/arch/i386/kernel/process.c	Sat Aug  3 16:41:03 2002
@@ -313,11 +313,6 @@
 	memcpy (swapper_pg_dir, swapper_pg_dir + USER_PGD_PTRS,
 		sizeof (swapper_pg_dir [0]) * KERNEL_PGD_PTRS);
 
-	/* Make sure the first page is mapped to the start of physical memory.
-	   It is normally not mapped, to trap kernel NULL pointer dereferences. */
-
-	pg0[0] = _PAGE_RW | _PAGE_PRESENT;
-
 	/*
 	 * Use `swapper_pg_dir' as our page directory.
 	 */

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-04 15:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-03 22:39 [PATCH] Dead code in i386/kernel/process.c Brian Gerst
2002-08-03 23:09 ` Brian Gerst
2002-08-04 15:45 ` Jamie Lokier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®