[PVFS2-developers] Unaligned access error messages
Rob Ross
rross at mcs.anl.gov
Tue Oct 4 13:40:27 EDT 2005
FYI this has been fixed now.
Rob
Pete Wyckoff wrote:
> mblack at platform.com wrote on Tue, 05 Jul 2005 14:55 -0400:
>
>>I'm trying to fix an "unaligned access" problem in 1.1.0 on the IA64 platform. I've found the line of code causing it, and was wondering if there was a nice clean way of fixing other than summing together a list of chars.
>>
>>How have the other alignment problems fixed, or where were they fixed in other code?
>>
>>The stack trace for the unaligned access error message is below. The problem is in: src/kernel/linux-2.6/devpvfs2-req.c
>>at line: 245 i.e.
>>
>> tag = *((uint64_t *)ptr);
>>
>>What is the best way to fix this?
>
>
> Ideally rearrange things so the accesses are always aligned, like maybe
> put the tag at the beginning of the buffer and the 32-bit magic next.
> But you'd have to make the user code understand that change too.
>
> Or if you don't mind wasting a few cycles, the official kernel way is
> in <asm/unaligned.h>. Something like tag = get_unaligned(ptr).
>
> -- Pete
> _______________________________________________
> PVFS2-developers mailing list
> PVFS2-developers at beowulf-underground.org
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers
>
More information about the PVFS2-developers
mailing list