Skip to content

Commit

Permalink
[natsemi] Fix test for addresses below 4GB
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Apr 27, 2012
1 parent 2c1e8d2 commit 35e09c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drivers/net/natsemi.h
Expand Up @@ -319,8 +319,8 @@ natsemi_address_ok ( struct natsemi_nic *natsemi, physaddr_t address ) {
if ( natsemi->flags & NATSEMI_64BIT )
return 1;

/* A 32-bit card can access all address below 4GB */
if ( ( address & 0xffffffffUL ) == 0 )
/* A 32-bit card can access all addresses below 4GB */
if ( ( address & ~0xffffffffULL ) == 0 )
return 1;

return 0;
Expand Down

0 comments on commit 35e09c1

Please sign in to comment.