Browse Source

fix the EB/LB issue

Xiangfu 13 years ago
parent
commit
81c323ce25
1 changed files with 2 additions and 2 deletions
  1. 2 2
      driver-avalon.h

+ 2 - 2
driver-avalon.h

@@ -26,14 +26,14 @@ struct avalon_task {
 
 
 	uint8_t midstate[32];
 	uint8_t midstate[32];
 	uint8_t data[12];
 	uint8_t data[12];
-} __attribute__((packed));
+} __attribute__((packed, aligned(4)));
 
 
 struct avalon_result {
 struct avalon_result {
 	uint32_t nonce;
 	uint32_t nonce;
 	uint8_t data[12];
 	uint8_t data[12];
 	uint8_t midstate[32];
 	uint8_t midstate[32];
 	uint8_t reserved[16];
 	uint8_t reserved[16];
-} __attribute__((packed));
+} __attribute__((packed, aligned(4)));
 
 
 struct AVALON_HISTORY {
 struct AVALON_HISTORY {
 	struct timeval finish;
 	struct timeval finish;