diff options
author | Simon Glass <sjg@chromium.org> | 2023-07-15 21:38:41 -0600 |
---|---|---|
committer | Bin Meng <bmeng@tinylab.org> | 2023-07-17 17:08:44 +0800 |
commit | de94db813272393d136f21b2cb832d8933d2cfb2 (patch) | |
tree | 2b64f88fb5254b805b4ea3b0c65281539488bdda /arch/x86/include/asm/u-boot-x86.h | |
parent | b73dba7a83f2071ef97e175be5ee8a2492042e96 (diff) | |
download | u-boot-de94db813272393d136f21b2cb832d8933d2cfb2.zip u-boot-de94db813272393d136f21b2cb832d8933d2cfb2.tar.gz u-boot-de94db813272393d136f21b2cb832d8933d2cfb2.tar.bz2 |
x86: Add a comment for board_init_f_r_trampoline()
Add a comment for this function in the header.
Change the function (and the one after) to use __noreturn to keep
checkpatch happy.
Add docs to board_init_f_r() while we are here.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include/asm/u-boot-x86.h')
-rw-r--r-- | arch/x86/include/asm/u-boot-x86.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/arch/x86/include/asm/u-boot-x86.h b/arch/x86/include/asm/u-boot-x86.h index 8f38c2d..1d8aa32 100644 --- a/arch/x86/include/asm/u-boot-x86.h +++ b/arch/x86/include/asm/u-boot-x86.h @@ -102,8 +102,20 @@ int video_bios_init(void); */ int fsp_save_s3_stack(void); -void board_init_f_r_trampoline(ulong) __attribute__ ((noreturn)); -void board_init_f_r(void) __attribute__ ((noreturn)); +/** + * board_init_f_r_trampoline() - jump to relocated address with new stack + * + * @sp: New stack pointer to use + */ +void __noreturn board_init_f_r_trampoline(ulong sp); + +/** + * board_init_f_r() - jump to relocated U-Boot + * + * This is used to jump from pre-relocation to post-relocation U-Boot. It + * enables the cache and jump to the new location. + */ +void __noreturn board_init_f_r(void); int arch_misc_init(void); |