diff options
author | Furquan Shaikh <furquan@google.com> | 2014-07-22 11:13:45 -0700 |
---|---|---|
committer | Marc Jones <marc.jones@se-eng.com> | 2015-01-16 20:49:29 +0100 |
commit | c1f5a2e3643be9128448c8557ed1a62437602d69 (patch) | |
tree | c12be1f50b9d1765f08472e3770291faf98f8985 /src | |
parent | 3e724828b4612dd335f490c44ca6910be87043ee (diff) | |
download | coreboot-c1f5a2e3643be9128448c8557ed1a62437602d69.tar.xz |
fmap: Fix pointer related casts
BUG=None
BRANCH=None
TEST=Compiles
Original-Change-Id: I3a747cb562e7390bb81eca874d6c5aaa54b81e6e
Original-Signed-off-by: Furquan Shaikh <furquan@google.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/209337
Original-Tested-by: Furquan Shaikh <furquan@chromium.org>
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org>
(cherry picked from commit 5d3aef321a9313719308909ec40fdad0ec631a9f)
Signed-off-by: Marc Jones <marc.jones@se-eng.com>
Change-Id: Ia8edf54f65947be12a7ae69f6825545fb2aed0f1
Reviewed-on: http://review.coreboot.org/8222
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src')
-rw-r--r-- | src/vendorcode/google/chromeos/fmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vendorcode/google/chromeos/fmap.c b/src/vendorcode/google/chromeos/fmap.c index bc56a19066..d758f57a20 100644 --- a/src/vendorcode/google/chromeos/fmap.c +++ b/src/vendorcode/google/chromeos/fmap.c @@ -122,7 +122,7 @@ int find_fmap_entry(const char name[], void **pointer) #endif } - *pointer = (void*) ((u32)base + area->offset); + *pointer = (void*) ((uintptr_t)base + area->offset); printk(BIOS_DEBUG, "FMAP: %s at %p (offset %x)\n", name, *pointer, area->offset); return area->size; |