summaryrefslogtreecommitdiff
path: root/hwaccess.h
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2013-07-17 23:46:44 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2013-07-17 23:46:44 +0000
commitcbe1dacb25832e222f6ddcb91d91ad443c08629a (patch)
tree3b65c3cd627ff55d683f26bf0819913a3e63c5d8 /hwaccess.h
parent2aed3f4affd85da2ec982a2d4f52a74a12d9bb77 (diff)
downloadflashrom-cbe1dacb25832e222f6ddcb91d91ad443c08629a.tar.gz
uintptr_t-ify map_flash_region functions.
unsigned long is not the right type for manipulating pointer values. Since C99 there are suitable unsigned and signed types available, namely uintptr_t and intptr_t respectively. Use them in functions assigned to programmers' map_flash_region fields and their callers where applicable. This patch also changes the display width of all associated address values in physmap.c to 16/8 hex characters depending on the actual size by introducing a macro PRIxPTR_WIDTH and exploiting printf's * field width specifier. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1701 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'hwaccess.h')
0 files changed, 0 insertions, 0 deletions