mach64: use unaligned access
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 23 Jan 2014 19:41:09 +0000 (14:41 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 Apr 2014 15:23:19 +0000 (16:23 +0100)
commit1a2417a20f3733dac45d91b1b0d7cd58260ff587
tree015b7243184f46b2d48d40d1ddbb78f9d6ff7fb3
parenteda5fd3e2bf03fd7351a9573696d5ce63e07fde2
mach64: use unaligned access

commit c29dd8696dc5dbd50b3ac441b8a26751277ba520 upstream.

This patch fixes mach64 to use unaligned access to the font bitmap.

This fixes unaligned access warning on sparc64 when 14x8 font is loaded.

On x86(64), unaligned access is handled in hardware, so both functions
le32_to_cpup and get_unaligned_le32 perform the same operation.

On RISC machines, unaligned access is not handled in hardware, so we
better use get_unaligned_le32 to avoid the unaligned trap and warning.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/video/aty/mach64_accel.c