mirror of
				https://github.com/DigitalDevices/dddvb.git
				synced 2025-03-01 10:35:23 +00:00 
			
		
		
		
	fix error for unaligned accesses
This commit is contained in:
		| @@ -139,8 +139,8 @@ void gtlcpyfrom(struct ddb *dev, u8 *buf, u32 adr, long count) | ||||
| 	u32 a = p & 3; | ||||
|  | ||||
| 	if (a) { | ||||
| 		val = ddbreadl(dev, p) >> (8 * a); | ||||
| 		while (p & 3 && count) { | ||||
| 		val = ddbreadl(dev, p & ~3) >> (8 * a); | ||||
| 		while ((p & 3) && count) { | ||||
| 			*buf = val & 0xff; | ||||
| 			val >>= 8; | ||||
| 			p++; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user