From: Ian Campbell Subject: Re: [PATCH 3/7] vgabios: Fix size computation overflow Date: Fri, 4 May 2012 15:26:49 +0100 Message-ID: <1336141609.7535.2.camel@zakaz.uk.xensource.com> References: <1336135010-26940-1-git-send-email-frediano.ziglio@citrix.com> <1336135010-26940-4-git-send-email-frediano.ziglio@citrix.com> <1336140734.2361.72.camel@zakaz.uk.xensource.com> <7CE799CC0E4DE04B88D5FDF226E18AC2CDE9E24CDB@LONPMAILBOX01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <7CE799CC0E4DE04B88D5FDF226E18AC2CDE9E24CDB@LONPMAILBOX01.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Frediano Ziglio Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-05-04 at 15:18 +0100, Frediano Ziglio wrote: > On Fri, 2012-05-04 at 15:12 +0100, Ian Campbell wrote: > > On Fri, 2012-05-04 at 13:36 +0100, Frediano Ziglio wrote: > > > Remove an overflow computing width x height x bit which does > > > not fit into a 16 bits. I wrote a routine to multiple these value > > > and get the size required for framebuffer in segment unit (64k). > > > > Couldn't this be done in C using a suitably wide temporary variable? > > > > I'd like :( > > BCC compiler used need some function which are not linked by BIOS. In which case Acked-by: Ian Campbell