[PATCH 1/3] Support BE8 mode kernel modules relocation
stanley.miao
stanley.miao at windriver.com
Fri Jan 21 05:11:45 EST 2011
Russell King - ARM Linux wrote:
> On Wed, Jan 19, 2011 at 02:44:45PM +0800, Stanley.Miao wrote:
>
>> @@ -174,9 +186,9 @@ apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex,
>> * other bits to re-code instruction as
>> * MOV PC,Rm.
>> */
>> - *(u32 *)loc &= 0xf000000f;
>> - *(u32 *)loc |= 0x01a0f000;
>> - break;
>> + write_instr32((read_instr32(loc) & 0xf000000f) |
>> + 0x01a0f000, loc);
>> + break;
>>
>
> Indentation error.
>
>
Actually, The indentation of my code is right, and the original code is
wrong.
Stanley.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110121/aaf41cba/attachment-0001.html>
More information about the linux-arm-kernel
mailing list