Browse Source

[natsemi] Fix test for addresses below 4GB

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
35e09c1a7c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/drivers/net/natsemi.h

+ 2
- 2
src/drivers/net/natsemi.h View File

319
 	if ( natsemi->flags & NATSEMI_64BIT )
319
 	if ( natsemi->flags & NATSEMI_64BIT )
320
 		return 1;
320
 		return 1;
321
 
321
 
322
-	/* A 32-bit card can access all address below 4GB */
323
-	if ( ( address & 0xffffffffUL ) == 0 )
322
+	/* A 32-bit card can access all addresses below 4GB */
323
+	if ( ( address & ~0xffffffffULL ) == 0 )
324
 		return 1;
324
 		return 1;
325
 
325
 
326
 	return 0;
326
 	return 0;

Loading…
Cancel
Save