[U-Boot] [PATCH v2 12/22] x86: fsp: Save stack address to CMOS for next S3 boot

Bin Meng bmeng.cn at gmail.com
Wed Apr 26 07:34:56 UTC 2017


On Fri, Apr 21, 2017 at 10:24 PM, Bin Meng <bmeng.cn at gmail.com> wrote:
> At the end of pre-relocation phase, save the new stack address
> to CMOS and use it as the stack on next S3 boot for fsp_init()
> continuation function.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
>
> ---
>
> Changes in v2:
> - add a function comment block for fsp_save_s3_stack()
> - check error on calling rtc_write32()
> - add some comments about why calling cmos_read32() instead of rtc_
>
>  arch/x86/cpu/cpu.c                 |  8 ++++++++
>  arch/x86/include/asm/cmos_layout.h | 31 +++++++++++++++++++++++++++++++
>  arch/x86/include/asm/u-boot-x86.h  | 13 +++++++++++++
>  arch/x86/lib/fsp/fsp_common.c      | 38 +++++++++++++++++++++++++++++++++++++-
>  4 files changed, 89 insertions(+), 1 deletion(-)
>  create mode 100644 arch/x86/include/asm/cmos_layout.h
>

applied to u-boot-x86/next, thanks!


More information about the U-Boot mailing list