summaryrefslogtreecommitdiff
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-12-10 22:02:57 -0800
committerBin Meng <bmeng.cn@gmail.com>2016-01-13 12:20:13 +0800
commitf0285fbe4e868311f925aeae480796d4626e1728 (patch)
tree0205e923598b31e8b13753f0ff29506bd2512ca9 /arch/x86/lib
parentaa02446406af194b7c79c2fae06073690e4fbba3 (diff)
downloadu-boot-imx-f0285fbe4e868311f925aeae480796d4626e1728.zip
u-boot-imx-f0285fbe4e868311f925aeae480796d4626e1728.tar.gz
u-boot-imx-f0285fbe4e868311f925aeae480796d4626e1728.tar.bz2
x86: fsp: Avoid cast stack_top in struct shared_data
Declare stack_top as u32 in struct shared_data and struct common_buf so that we can avoid casting in fsp_init(). Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/fsp/fsp_support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/lib/fsp/fsp_support.c b/arch/x86/lib/fsp/fsp_support.c
index 0408b5d..df62ba8 100644
--- a/arch/x86/lib/fsp/fsp_support.c
+++ b/arch/x86/lib/fsp/fsp_support.c
@@ -122,7 +122,7 @@ void fsp_init(u32 stack_top, u32 boot_mode, void *nvs_buf)
memset(&rt_buf, 0, sizeof(struct fspinit_rtbuf));
/* Reserve a gap in stack top */
- rt_buf.common.stack_top = (u32 *)stack_top - 32;
+ rt_buf.common.stack_top = stack_top - 32;
rt_buf.common.boot_mode = boot_mode;
rt_buf.common.upd_data = fsp_upd;
@@ -152,7 +152,7 @@ void fsp_init(u32 stack_top, u32 boot_mode, void *nvs_buf)
params_ptr = &params;
shared_data.fsp_hdr = fsp_hdr;
- shared_data.stack_top = (u32 *)stack_top;
+ shared_data.stack_top = stack_top;
post_code(POST_PRE_MRC);