summaryrefslogtreecommitdiff
path: root/payloads/libpayload/arch/x86
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2013-07-06 22:11:19 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-12-12 22:03:22 +0100
commitc083d2e3470222a6a4130a322d133f7404a06bc6 (patch)
tree70d88893f2d9f4e63ba81f9dbc0601306a055336 /payloads/libpayload/arch/x86
parentcb0aeef0a9ef58049a093eb42b8c7f06c9e1b271 (diff)
libpayload: Get rid of a compiler warning
Change-Id: I7252925ef5c4efb69cad6b6fa179031162cf8e74 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/61058 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org> Reviewed-on: http://review.coreboot.org/4346 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'payloads/libpayload/arch/x86')
-rw-r--r--payloads/libpayload/arch/x86/coreboot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/payloads/libpayload/arch/x86/coreboot.c b/payloads/libpayload/arch/x86/coreboot.c
index 6c6122d26c..bd10b22e29 100644
--- a/payloads/libpayload/arch/x86/coreboot.c
+++ b/payloads/libpayload/arch/x86/coreboot.c
@@ -31,6 +31,7 @@
#include <libpayload-config.h>
#include <libpayload.h>
#include <coreboot_tables.h>
+#include <stdint.h>
/*
* Some of this is x86 specific, and the rest of it is generic. Right now,
@@ -83,7 +84,7 @@ static void cb_parse_vboot_handoff(unsigned char *ptr, struct sysinfo_t *info)
{
struct cb_vboot_handoff *vbho = (struct cb_vboot_handoff *)ptr;
- info->vboot_handoff = vbho->vboot_handoff_addr;
+ info->vboot_handoff = (void *)(uintptr_t)vbho->vboot_handoff_addr;
info->vboot_handoff_size = vbho->vboot_handoff_size;
}