[U-Boot] [PATCH v3 02/10] armv7: add miscellaneous utility macros

V, Aneesh aneesh at ti.com
Tue May 31 09:54:47 CEST 2011


Hi Wolfgang,

On Tue, May 17, 2011 at 2:57 PM, Wolfgang Denk <wd at denx.de> wrote:
> Dear Aneesh V,
>
> In message <4DD23561.70105 at ti.com> you wrote:
>>
>> In fact I had searched for a macro for similar needs as my
>> set_bit_field() is addressing in Linux Kernel too but didn't find any.
> ...
>> I couldn't find any utility macros/functions for doing something like
>> this.
>>
>> Please somebody correct me if I am wrong.
>
> I am not aware of such a functionality in the Linux kernel, either.
>
> A quick search did not even show any attempts to introduce such macros
> to Linux.  It appears they don't need such a feature ?

Wolfgang, what's your final take on this. Can I continue to use the utility
macros given that I don't have any 'standard' alternative. For register
accesses I shall move to setclrbits*() macros that you had suggested.
But for bit operations I do not have any alternatives.

best regards,
Aneesh


More information about the U-Boot mailing list