mirror of
https://github.com/ipxe/ipxe
synced 2026-01-02 18:03:36 +03:00
[natsemi] Fix test for addresses below 4GB
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -319,8 +319,8 @@ natsemi_address_ok ( struct natsemi_nic *natsemi, physaddr_t address ) {
|
|||||||
if ( natsemi->flags & NATSEMI_64BIT )
|
if ( natsemi->flags & NATSEMI_64BIT )
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
/* A 32-bit card can access all address below 4GB */
|
/* A 32-bit card can access all addresses below 4GB */
|
||||||
if ( ( address & 0xffffffffUL ) == 0 )
|
if ( ( address & ~0xffffffffULL ) == 0 )
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user