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:
parent
959588394d
commit
011b188df0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue