From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750977AbWH2QBz (ORCPT ); Tue, 29 Aug 2006 12:01:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751076AbWH2QBz (ORCPT ); Tue, 29 Aug 2006 12:01:55 -0400 Received: from nf-out-0910.google.com ([64.233.182.188]:46487 "EHLO nf-out-0910.google.com") by vger.kernel.org with ESMTP id S1750977AbWH2QBy (ORCPT ); Tue, 29 Aug 2006 12:01:54 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=g0giD81eUJ1TYblcs81aEAtzjfY7labX5fzmjdk6pGTiohys4U4jmpbh3q9vIRcS3Z7e/Wg43rTm8euvZ3Lz3dYE5w+GKN5lpAOcG9LBEr7Dl+n85mtjuqH9H8V/3A42ITYiS0Wpi8BUZjC21Qh05CNn5tpIx0t/IkKfDbG8ziE= Message-ID: Date: Wed, 30 Aug 2006 00:01:48 +0800 From: "Dong Feng" To: "Jan Engelhardt" Subject: Re: The 3G (or nG) Kernel Memory Space Offset Cc: "Andi Kleen" , "Nick Piggin" , "Arjan van de Ven" , "Paul Mackerras" , "Christoph Lameter" , "David Howells" , linux-kernel@vger.kernel.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 2006/8/29, Jan Engelhardt : > > "0-4G physical memory space" denotes RAM. Since kernelspace is resident, it > only seems logical to map it to 0G (that is, the start of RAM), because the > end of RAM can be flexible. > > IOW, you cannot map kernelspace to the physical location 0xc0000000 because > there might not be that much RAM. > > (Also note the PCI memory hole which is near the end of the 4G range.) > > > Jan Engelhardt > -- > Sorry for my typo. I actually means "0-1G physical memory space." My question is actually why there is a 3G offset from linear kernel to physical kernel. Why not simply have kernel memory linear space located on 0-1G linear address, and therefore the physical kernel and linear kernel just coincide? Or perhaps this offset is just some personal favor. Say if the first kernel designer decided to locate kernel at 2-3G linear address, then 2G offset would have appeared in code. Is this the case?