From: Keir Fraser Subject: Re: [timer/ticks related] dom0 hang during boot on large 1TB system Date: Tue, 22 Dec 2009 08:05:28 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" 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: Mukesh Rathor , Steve Ofsthun Cc: Hackel , Dan Magenheimer , "Xen-devel@lists.xensource.com" , Jeremy Fitzhardinge , "Kurt@acsinet11.oracle.com" List-Id: xen-devel@lists.xenproject.org On 22/12/2009 07:59, "Keir Fraser" wrote: >> For wrapping, unsigned comparision must be done, which is also the jiffies >> data type. > > If you do 32-bit unsigned comparisons, that is broken by jiffies wrapping, > the fixing of which was the whole point of the comparison macros. I'm talking about '(ulong)b<(ulong)a' here of course. '(ulong)b-(ulong)a<0' would always be false, which is even less useful. -- Keir