mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-22 17:41:55 +00:00
[natsemi] Fix test for addresses below 4GB
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
2c1e8d2cb1
commit
35e09c1a7c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user