From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11899 invoked by alias); 8 Mar 2007 21:04:00 -0000 Received: (qmail 11887 invoked by uid 22791); 8 Mar 2007 21:03:59 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.239) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 08 Mar 2007 21:03:55 +0000 Received: by wr-out-0506.google.com with SMTP id i31so1096286wra for ; Thu, 08 Mar 2007 13:03:49 -0800 (PST) Received: by 10.114.136.1 with SMTP id j1mr281415wad.1173387828408; Thu, 08 Mar 2007 13:03:48 -0800 (PST) Received: by 10.115.93.7 with HTTP; Thu, 8 Mar 2007 13:03:48 -0800 (PST) Message-ID: <9c21eeae0703081303t576e8757t259380092894ced5@mail.gmail.com> Date: Thu, 08 Mar 2007 21:04:00 -0000 From: "David Brown" To: "Anton Blanchard" Subject: Re: PAGE_SIZE Availability Inconsistency Cc: "H. Peter Anvin" , "Christoph Hellwig" , "Arjan van de Ven" , "Roman Zippel" , "Linux Kernel Mailing List" , gdb@sourceware.org In-Reply-To: <20070308175729.GA7054@kryten> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9c21eeae0703051555x1884fd7cse7968a71ec04eb27@mail.gmail.com> <20070306092917.GA5226@infradead.org> <200703080318.04631.zippel@linux-m68k.org> <20070308090031.GB7373@infradead.org> <1173369229.3550.2.camel@laptopd505.fenrus.org> <20070308160852.GB9916@infradead.org> <45F0426C.8000009@zytor.com> <20070308175729.GA7054@kryten> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00144.txt.bz2 On 3/8/07, Anton Blanchard wrote: > > > By the way, it's a massive snafu that the swap area magic number is > > dependent on PAGE_SIZE. There is absolutely no good reason for that. > > Agreed, its been a big problem booting between 4kB and 64kB kernels on > ppc64. Okay this really seems like a couple of things need to happen, first change swap dependency on PAGE_SIZE, then move the __KERNEL__ define above the PAGE_SIZE and friends defines in the appropriate asm-*/page.h files. Do these tasks need to happen in this order? I haven't really looked at the swap code at all... Also, I'd be willing to help I've done kernel coding for experimental projects and such but nothing for kernel.org so I might need some shepherding. - David Brown