Subject: Re: question on inline assembly and long long values

From: Chris Friesen <[email-masked]>
Date: Wed, 06 Apr 2005 18:09:29 -0600

Benjamin Herrenschmidt wrote:
> On Wed, 2005-04-06 at 17:56 -0600, Chris Friesen wrote:
>>Benjamin Herrenschmidt wrote:
>>>But the kernel code always runs in 64 bits mode...
>>
>>The ppc kernel (not ppc64) runs in 64-bit mode?  An unsigned long long 
>>fits in a single register in C code?
> 
> Ah no, it doesn't, but then, be careful to have interrupts off when you
> do that are the interrupt handler won't save the high half of the
> registers between the mtmsrd and your "splitting" of it.

Right.  All this stuff is running with interrupts off.

Chris