mirror of
https://github.com/ipxe/ipxe
synced 2025-12-31 15:25:23 +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.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. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user