]> git.sur5r.net Git - u-boot/commitdiff
Properly calculate ATA_SECTORWORDS, using a fixed-size integer, so it works for both...
authorStanislav Galabov <sgalabov@gmail.com>
Wed, 17 Feb 2016 13:23:29 +0000 (15:23 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 20 May 2016 23:25:50 +0000 (01:25 +0200)
Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
include/ata.h

index 9d6f59c97bfaae7ea8482eb03468533465901d9c..dde377c99ec92423093733c24008c1508ddcd915 100644 (file)
 
 #define ATA_BLOCKSIZE  512     /* bytes */
 #define ATA_BLOCKSHIFT 9       /* 2 ^ ATA_BLOCKSIZESHIFT = 512 */
-#define ATA_SECTORWORDS        (512 / sizeof(unsigned long))
+#define ATA_SECTORWORDS        (512 / sizeof(uint32_t))
 
 #ifndef ATA_RESET_TIME
 #define ATA_RESET_TIME 60      /* spec allows up to 31 seconds */