From: Ian Campbell Subject: Re: e820.c : why char* ? (2nd try) Date: Thu, 29 Jun 2006 11:06:37 +0100 Message-ID: <1151575597.12061.14.camel@localhost.localdomain> References: <44A39F38.6010705@cea.fr> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <44A39F38.6010705@cea.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: PUCCETTI Armand Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Thu, 2006-06-29 at 11:36 +0200, PUCCETTI Armand wrote: > In function > > sanitize_e820_map(struct e820entry * biosmap, char * pnr_map) > > of file e820.c, the last argument is treated as an integer, but when > compiling with gcc it belongs to [-128,127]. This is not a Xen specific issue. On native the value comes from the BIOS and is a single byte, hence the type. Xen uses the same function. I don't think it is possible for there to ever be more than 127 entries in an e820 map so other than potentially wasting a couple of entries in the tables I don't see a problem. Ian.