diff options
author | Paul Menzel <pmenzel@molgen.mpg.de> | 2017-05-04 16:35:25 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2017-05-06 07:54:47 +0200 |
commit | 57d912baccc05079c96924fbc02f0d096763ec33 (patch) | |
tree | b18075481ba4dfa2ab8bb1c60215a8bf102ffd99 /Documentation | |
parent | f27d98fadc004826565aabd554569d6e2f07b0eb (diff) |
intelmetool: Use correct type for pointer
Use `uintptr_t` instead of `uint32_t`, fixing the error below on 64-bit
systems, where pointers are 64-bit wide.
```
cc -O0 -g -Wall -W -Wno-unused-parameter -Wno-unused-but-set-variable -Wno-sign-compare -Wno-unused-function -c -o intelmetool.o intelmetool.c
intelmetool.c: In function ‘dump_me_memory’:
intelmetool.c:85:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
dump = map_physical_exact((off_t)me_clone, (void *)me_clone, 0x2000000);
^
```
BUG=https://ticket.coreboot.org/issues/111
Change-Id: Id8d778e97090668ad9308a82b44c6b2b599fd6c3
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/19567
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Reviewed-by: Paul Wise (Debian) <pabs@debian.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions