[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH][retry 3][1/2] new vcpu op call to getphysicalCPU information



>>> Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> 05.03.08 12:40 >>>
>Jan Beulich writes ("Re: [Xen-devel] [PATCH][retry 3][1/2] new vcpu op call to 
>get physicalCPU information"):
>> >+   short temp = 0xff;
>...
>> >+   cpu_id.phys_id |= temp << 8;
>> 
>> Please shift by 32 here for forward compatibility.
>
>short promotes to int, probably 32-bit, but shifting by the word size
>or more is not permitted.  In any case even if it worked like you
>wanted, the result would be 0.  Perhaps you meant to suggest some
>changes of types as well ?

Of course.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.