KUWAMURA Shin''ya
2007-Aug-08 05:19 UTC
[Xen-devel] [PATCH] libfsimage: FAT: Fix unaligned access
Hi, Using pygrub on IA64, the following messages output: pygrub(5742): unaligned access to 0x600000000013515c, ip=0x2000000003b721f0 pygrub(5742): unaligned access to 0x600000000013515e, ip=0x2000000003b721f0 pygrub(5742): unaligned access to 0x6000000000135162, ip=0x2000000003b721f0 pygrub(5742): unaligned access to 0x6000000000135164, ip=0x2000000003b721f0 pygrub(5742): unaligned access to 0x6000000000135166, ip=0x2000000003b721f0 The ip indicates this line of tools/libfsimage/fat/fsys_fat.c:231: next_cluster = * (unsigned long *) (FAT_BUF + (cached_pos >> 1)); If the partition is FAT16, this access causes an unaligned access. This patch fixes it. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com> Signed-off-by: KUWAMURA Shin''ya <kuwa@jp.fujitsu.com> Best Regards, -- KUWAMURA Shin''ya _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel