question on inline assembly and long long values

Chris Friesen cfriesen at nortel.com
Thu Apr 7 10:09:29 EST 2005


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



More information about the Linuxppc-dev mailing list