boot fatfs: fix misaligned access on sparc.

Change-Id: Id4d0a93ce13b5e5d479896dbfc10d71de1ba52c6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1987
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
This commit is contained in:
PulkoMandy 2019-10-27 22:00:59 +01:00 committed by waddlesplash
parent 959588394d
commit 011b188df0
1 changed files with 1 additions and 2 deletions

View File

@ -24,8 +24,7 @@ class Volume;
#define read32(buffer,off) \
B_LENDIAN_TO_HOST_INT32(*(uint32 *)&buffer[off])
#define read16(buffer,off) \
B_LENDIAN_TO_HOST_INT16(*(uint16 *)&buffer[off])
#define read16(buffer,off) (buffer[off] + (buffer[off + 1] << 8))
#define write32(buffer, off, value) \
*(uint32*)&buffer[off] = B_HOST_TO_LENDIAN_INT32(value)