From: Stanislav Galabov Date: Wed, 17 Feb 2016 13:23:29 +0000 (+0200) Subject: Properly calculate ATA_SECTORWORDS, using a fixed-size integer, so it works for both... X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=d92ea983b9dfc99063373c167dae6b7705bc552b;p=u-boot.git Properly calculate ATA_SECTORWORDS, using a fixed-size integer, so it works for both 32-bit and 64-bit targets Signed-off-by: Stanislav Galabov --- diff --git a/include/ata.h b/include/ata.h index 9d6f59c97b..dde377c99e 100644 --- a/include/ata.h +++ b/include/ata.h @@ -126,7 +126,7 @@ #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 */