Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 3 Aug 2002 18:40:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 3 Aug 2002 18:40:48 -0400 Received: from sccrmhc01.attbi.com ([204.127.202.61]:7097 "EHLO sccrmhc01.attbi.com") by vger.kernel.org with ESMTP id ; Sat, 3 Aug 2002 18:40:48 -0400 Message-ID: <3D4C5B8E.5060009@quark.didntduck.org> Date: Sat, 03 Aug 2002 18:39:10 -0400 From: Brian Gerst User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020607 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Linus Torvalds CC: Linux-Kernel Subject: [PATCH] Dead code in i386/kernel/process.c Content-Type: multipart/mixed; boundary="------------050108070501040702060909" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1329 Lines: 38 This is a multi-part message in MIME format. --------------050108070501040702060909 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit This patch removes an artifact of code left over from the 2.0 days when the kernel didn't use flat segments. --------------050108070501040702060909 Content-Type: text/plain; name="pg0-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pg0-1" 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. */ --------------050108070501040702060909-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/