From: Keir Fraser Subject: Re: [PATCH]: Fix rombios to correctly report size of disks >16GB Date: Fri, 23 Jul 2010 09:30:36 +0100 Message-ID: References: <1279872890.1723.2036.camel@qabil.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1279872890.1723.2036.camel@qabil.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Gianni Tedesco (3P)" Cc: Xen Devel List-Id: xen-devel@lists.xenproject.org On 23/07/2010 09:14, "Gianni Tedesco (3P)" wrote: >>> Also I'm not sure but I think the >>> integer size here may be 16 bits, and the %u format specifier would only >>> print 16-bit values in that case anyway. >> >> I tested it and it works as advertised (modulo 16 -> 64).... > > BTW. the reason for that is printf() and integer definition doesn't > change regardless of whether gcc is compiling for 16 or 32 bit mode but > just changes the logic wrt operand-size insn prefix This isn't compiled with gcc, but with bcc from the dev86 toolchain. Hacking sizeinmb to be 67UL<<10, I find that 67GB is printed which is correct. That's with the latest dev86 (which is still very old!) v0.16.17. -- Keir