mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
devmem2: ensure word is 32-bit, add support for 64-bit long
Since sizeof(unsigned long) can be 8-byte on 64-bit architectures, use uint32_t instead for "word" access to always be 4-byte/32-bit long. Also introduce proper "long" 8-byte/64-bit access by using uint64_t. Signed-off-by: Denys Dmytriyenko <denys@ti.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
committed by
Khem Raj
parent
b707fa76cb
commit
1bcd15ed5b
@@ -4,7 +4,9 @@ LIC_FILES_CHKSUM = "file://devmem2.c;endline=38;md5=a9eb9f3890384519f435aedf9862
|
||||
PR = "r7"
|
||||
|
||||
SRC_URI = "http://www.free-electrons.com/pub/mirror/devmem2.c;downloadfilename=devmem2-new.c \
|
||||
file://devmem2-fixups-2.patch;apply=yes;striplevel=0"
|
||||
file://devmem2-fixups-2.patch;apply=yes;striplevel=0 \
|
||||
file://0001-devmem.c-ensure-word-is-32-bit-and-add-support-for-6.patch"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
CFLAGS += "-DFORCE_STRICT_ALIGNMENT"
|
||||
|
||||
Reference in New Issue
Block a user