From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754175AbXDWUmj (ORCPT ); Mon, 23 Apr 2007 16:42:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754183AbXDWUmj (ORCPT ); Mon, 23 Apr 2007 16:42:39 -0400 Received: from terminus.zytor.com ([192.83.249.54]:35362 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754175AbXDWUmi (ORCPT ); Mon, 23 Apr 2007 16:42:38 -0400 Message-ID: <462D1A02.5060403@zytor.com> Date: Mon, 23 Apr 2007 13:41:38 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: "Eric W. Biederman" CC: Jeremy Fitzhardinge , Jeremy Fitzhardinge , lkml , Chris Wright , virtualization@lists.osdl.org, Chuck Ebbert , Andrew Morton , Linus Torvalds Subject: Re: [PATCH 10/28] i386: map enough initial memory to create lowmem mappings References: <20070414204154.871250608@goop.org> <200704192250.52633.ak@suse.de> <4627D756.5020405@zytor.com> <200704192304.01053.ak@suse.de> <4627DB0C.2010804@zytor.com> <4627DDAD.4070805@redhat.com> <4627E099.209@goop.org> <462CE027.4030302@goop.org> <462CE1E0.9060007@zytor.com> <462CF5B8.4070708@xensource.com> <462D04B2.6080008@goop.org> <462D05A0.1020100@zytor.com> <462D072F.6030809@goop.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Eric W. Biederman wrote: > Jeremy Fitzhardinge writes: > >> H. Peter Anvin wrote: >>> It would be *trivial* to make a certain number of page table slots >>> available at the end of the head.S-generated map. >> Or you could use a fixmap. > > That certain number of page table slots should be the fixmap slots. > If you do that bt_ioremap works, we remove a boatload of special cases > and the code becomes simpler. It's probably worth noting that several of the non-PC ports already do exactly this, although in a hacky way. Grep for pg0 and you'll find it. -hpa