From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Wed, 26 Apr 2017 15:34:56 +0800 Subject: [U-Boot] [PATCH v2 12/22] x86: fsp: Save stack address to CMOS for next S3 boot In-Reply-To: <1492784689-15701-13-git-send-email-bmeng.cn@gmail.com> References: <1492784689-15701-1-git-send-email-bmeng.cn@gmail.com> <1492784689-15701-13-git-send-email-bmeng.cn@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Apr 21, 2017 at 10:24 PM, Bin Meng 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 > Reviewed-by: Simon Glass > > --- > > 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!