david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[natsemi] Fix test for addresses below 4GB

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2012-04-27 01:18:19 +01:00
parent 2c1e8d2cb1
commit 35e09c1a7c
1 changed files with 2 additions and 2 deletions

View File

@ -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;