software/libbase/spisdcard: fix 4-byte FAT fields on 64-bit CPUs
authorGabriel Somlo <gsomlo@gmail.com>
Fri, 20 Mar 2020 01:50:54 +0000 (21:50 -0400)
committerGabriel Somlo <gsomlo@gmail.com>
Fri, 20 Mar 2020 01:51:44 +0000 (21:51 -0400)
commita33916bc6bafe074195056ea7d5abedbca18d875
treec5959a4431010caf37789cb0c2dca77cb3df2992
parent1f90abea8ea47dc4fde0d3325eb3339930cc987f
software/libbase/spisdcard: fix 4-byte FAT fields on 64-bit CPUs

On 64-bit architectures (e.g., Rocket), 'unsigned long' means
eight (not four) bytes. Use 'unsigned int' wherever a FAT data
structure requires a four-byte field!

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
litex/soc/software/libbase/spisdcard.c