projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b6e1fd
)
Properly calculate ATA_SECTORWORDS, using a fixed-size integer, so it works for both...
author
Stanislav Galabov
<sgalabov@gmail.com>
Wed, 17 Feb 2016 13:23:29 +0000
(15:23 +0200)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/include/ata.h
b/include/ata.h
index 9d6f59c97bfaae7ea8482eb03468533465901d9c..dde377c99ec92423093733c24008c1508ddcd915 100644
(file)
--- 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(u
nsigned long
))
+#define ATA_SECTORWORDS (512 / sizeof(u
int32_t
))
#ifndef ATA_RESET_TIME
#define ATA_RESET_TIME 60 /* spec allows up to 31 seconds */