mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-23 14:00:08 +00: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:
parent
37cb7c7498
commit
0e81ff2297
@ -304,10 +304,10 @@ static int myri10ge_command ( struct myri10ge_private *priv,
|
||||
command->response_addr.high = 0;
|
||||
command->response_addr.low
|
||||
= htonl ( virt_to_bus ( &priv->dma->command_response ) );
|
||||
for ( i=0; i<36; i+=4 )
|
||||
* ( uint32 * ) &command->pad[i] = 0;
|
||||
for ( i=0; i<9; i++ )
|
||||
command->pad[i] = 0;
|
||||
wmb();
|
||||
* ( uint32 * ) &command->pad[36] = 0;
|
||||
command->pad[9] = 0;
|
||||
|
||||
/* Wait up to 2 seconds for a response. */
|
||||
|
||||
|
@ -80,7 +80,7 @@ struct mcp_cmd {
|
||||
/* 16 */
|
||||
struct mcp_dma_addr response_addr;
|
||||
/* 24 */
|
||||
uint8_t pad[40];
|
||||
uint32_t pad[10];
|
||||
};
|
||||
typedef struct mcp_cmd mcp_cmd_t;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user