summaryrefslogtreecommitdiff
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-01-27 22:13:37 -0700
committerSimon Glass <sjg@chromium.org>2015-02-05 22:16:43 -0700
commit82196cf34f20c1aeb3f5d3d091b7edfdff37aaad (patch)
treeba876699a29a5130d57d32d293642dff6dd95a3b /arch/x86/lib
parent1021af4ded2d0961a4ba2ba89851719b098a98b6 (diff)
downloadu-boot-imx-82196cf34f20c1aeb3f5d3d091b7edfdff37aaad.zip
u-boot-imx-82196cf34f20c1aeb3f5d3d091b7edfdff37aaad.tar.gz
u-boot-imx-82196cf34f20c1aeb3f5d3d091b7edfdff37aaad.tar.bz2
x86: Adjust the FSP types slightly
To avoid casts, find_fsp_header() should return a pointer. Add asmlinkage to two API functions which use that convention. UPD_TERMINATOR is common so move it into a common file. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
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 f6ae85a..bf37807 100644
--- a/arch/x86/lib/fsp/fsp_support.c
+++ b/arch/x86/lib/fsp/fsp_support.c
@@ -30,7 +30,7 @@ static bool compare_guid(const struct efi_guid *guid1,
return false;
}
-u32 __attribute__((optimize("O0"))) find_fsp_header(void)
+struct fsp_header *__attribute__((optimize("O0"))) find_fsp_header(void)
{
/*
* This function may be called before the a stack is established,
@@ -84,7 +84,7 @@ u32 __attribute__((optimize("O0"))) find_fsp_header(void)
fsp = 0;
}
- return (u32)fsp;
+ return (struct fsp_header *)fsp;
}
void fsp_continue(struct shared_data *shared_data, u32 status, void *hob_list)