diff options
author | Simon Glass <sjg@chromium.org> | 2015-01-27 22:13:37 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-02-05 22:16:43 -0700 |
commit | 82196cf34f20c1aeb3f5d3d091b7edfdff37aaad (patch) | |
tree | ba876699a29a5130d57d32d293642dff6dd95a3b /arch/x86/include/asm/fsp/fsp_api.h | |
parent | 1021af4ded2d0961a4ba2ba89851719b098a98b6 (diff) | |
download | u-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/include/asm/fsp/fsp_api.h')
-rw-r--r-- | arch/x86/include/asm/fsp/fsp_api.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/include/asm/fsp/fsp_api.h b/arch/x86/include/asm/fsp/fsp_api.h index a9d7156..2d34d13 100644 --- a/arch/x86/include/asm/fsp/fsp_api.h +++ b/arch/x86/include/asm/fsp/fsp_api.h @@ -8,6 +8,8 @@ #ifndef __FSP_API_H__ #define __FSP_API_H__ +#include <linux/linkage.h> + /* * FspInit continuation function prototype. * Control will be returned to this callback function after FspInit API call. @@ -47,9 +49,9 @@ struct fsp_notify_params { }; /* FspInit API function prototype */ -typedef u32 (*fsp_init_f)(struct fsp_init_params *params); +typedef asmlinkage u32 (*fsp_init_f)(struct fsp_init_params *params); /* FspNotify API function prototype */ -typedef u32 (*fsp_notify_f)(struct fsp_notify_params *params); +typedef asmlinkage u32 (*fsp_notify_f)(struct fsp_notify_params *params); #endif |