1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

fix error for unaligned accesses

This commit is contained in:
rjkm 2021-01-13 14:56:22 +01:00
parent 46c42c6ef0
commit e413baeab9

View File

@ -139,8 +139,8 @@ void gtlcpyfrom(struct ddb *dev, u8 *buf, u32 adr, long count)
u32 a = p & 3; u32 a = p & 3;
if (a) { if (a) {
val = ddbreadl(dev, p) >> (8 * a); val = ddbreadl(dev, p & ~3) >> (8 * a);
while (p & 3 && count) { while ((p & 3) && count) {
*buf = val & 0xff; *buf = val & 0xff;
val >>= 8; val >>= 8;
p++; p++;