util/intelmetool: Fix warning building with 32-bit
commit1e7911e8aa830fcdf86cbb72671d79ea4c2c0e2a
authorPaul Menzel <paulepanter@users.sourceforge.net>
Tue, 27 Dec 2016 14:24:02 +0000 (27 15:24 +0100)
committerMartin Roth <martinroth@google.com>
Wed, 28 Dec 2016 16:25:56 +0000 (28 17:25 +0100)
treeb4f8e5fece79282226eaf3bfec0c8929c7bc7809
parent010ecf800956f389bc34e09b968fe8934d4aa2ae
util/intelmetool: Fix warning building with 32-bit

On a 32-bit system, pointers are 32-bit wide, and not 64-bit, resulting
in the warning below.

```
mmap.c: In function ‘map_physical_exact’:
mmap.c:26:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   virt_addr = mmap((void*)mapto, len, PROT_WRITE | PROT_READ,
                    ^
```

Fix this by using compatible types.

Change-Id: I4ede26127efcbd5668b978e6880a0535607e373d
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: https://review.coreboot.org/17970
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Martin Roth <martinroth@google.com>
util/intelmetool/intelmetool.c
util/intelmetool/mmap.c
util/intelmetool/mmap.h