summaryrefslogtreecommitdiff
path: root/include/ata.h
diff options
context:
space:
mode:
authorStanislav Galabov <sgalabov@gmail.com>2016-02-17 13:23:29 (GMT)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2016-05-20 23:25:50 (GMT)
commitd92ea983b9dfc99063373c167dae6b7705bc552b (patch)
tree6e480c8bb4a6433671fdbbb65fae693279090938 /include/ata.h
parent4b6e1fda107e5244e80ebc41865650ac2873dc88 (diff)
downloadu-boot-d92ea983b9dfc99063373c167dae6b7705bc552b.tar.xz
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 <sgalabov@gmail.com>
Diffstat (limited to 'include/ata.h')
-rw-r--r--include/ata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ata.h b/include/ata.h
index 9d6f59c..dde377c 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 */