Commit bd8feaa6 authored by Brian Gerst's avatar Brian Gerst Committed by Linus Torvalds

[PATCH] Dead code in i386/kernel/process.c

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

The preceding memcpy() already takes care of the NULL ptr mapping.
parent 09188a07
......@@ -313,11 +313,6 @@ void machine_real_restart(unsigned char *code, int length)
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.
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment