From: Keir Fraser Subject: Re: [Patch] Allow bitmasks with the badpage bootoption Date: Wed, 5 Apr 2006 12:27:13 +0100 Message-ID: <983b2c50588af9fa126c1db34bb59267@cl.cam.ac.uk> References: <49a267fe3eb03564486d6e7dbb21de83@cl.cam.ac.uk> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Erik Bosman Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 5 Apr 2006, at 12:10, Erik Bosman wrote: > This was how I first implemented it for my machine, since it only > requires > two ranges: badpage=0x2a000-0x2afff,0x3a000-0x3afff > > But I thought a mask would be better since it resembles the way memory > usually breaks (not that I have much experience with this.) > > On the other hand, ranges are much easier to understand. > > I've attached my original patch. Better, but: 1. Name the variables bad_spfn, bad_epfn 2. Format 'if (bad_epfn == bad_spfn)' as surrounding code (it's missing spaces just inside the brackets). 3. Re-send with a 'Signed-off-by:' line in your email. -- Keir