mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 14:32:49 +03:00
[myri10ge] Fix compilation error in myri10ge_command() with gcc 4.7
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
37cb7c7498
commit
0e81ff2297
@@ -304,10 +304,10 @@ static int myri10ge_command ( struct myri10ge_private *priv,
|
|||||||
command->response_addr.high = 0;
|
command->response_addr.high = 0;
|
||||||
command->response_addr.low
|
command->response_addr.low
|
||||||
= htonl ( virt_to_bus ( &priv->dma->command_response ) );
|
= htonl ( virt_to_bus ( &priv->dma->command_response ) );
|
||||||
for ( i=0; i<36; i+=4 )
|
for ( i=0; i<9; i++ )
|
||||||
* ( uint32 * ) &command->pad[i] = 0;
|
command->pad[i] = 0;
|
||||||
wmb();
|
wmb();
|
||||||
* ( uint32 * ) &command->pad[36] = 0;
|
command->pad[9] = 0;
|
||||||
|
|
||||||
/* Wait up to 2 seconds for a response. */
|
/* Wait up to 2 seconds for a response. */
|
||||||
|
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ struct mcp_cmd {
|
|||||||
/* 16 */
|
/* 16 */
|
||||||
struct mcp_dma_addr response_addr;
|
struct mcp_dma_addr response_addr;
|
||||||
/* 24 */
|
/* 24 */
|
||||||
uint8_t pad[40];
|
uint32_t pad[10];
|
||||||
};
|
};
|
||||||
typedef struct mcp_cmd mcp_cmd_t;
|
typedef struct mcp_cmd mcp_cmd_t;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user