From: Bin Meng Date: Wed, 2 Dec 2015 00:58:59 -0800 Subject: [U-Boot] [PATCH 3/8] x86: fsp: Add boot_mode as a member of struct shared_data In-Reply-To: <1449046744-12964-1-git-send-email-bmeng.cn@gmail.com> References: <1449046744-12964-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1449046744-12964-4-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Save boot_mode in struct shared_data for future refactoring Signed-off-by: Bin Meng --- arch/x86/include/asm/fsp/fsp_support.h | 1 + arch/x86/lib/fsp/fsp_support.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/x86/include/asm/fsp/fsp_support.h b/arch/x86/include/asm/fsp/fsp_support.h index 685778e..18e2d21 100644 --- a/arch/x86/include/asm/fsp/fsp_support.h +++ b/arch/x86/include/asm/fsp/fsp_support.h @@ -21,6 +21,7 @@ struct shared_data { struct fsp_header *fsp_hdr; u32 stack_top; + u32 boot_mode; struct upd_region fsp_upd; }; diff --git a/arch/x86/lib/fsp/fsp_support.c b/arch/x86/lib/fsp/fsp_support.c index df62ba8..083d855 100644 --- a/arch/x86/lib/fsp/fsp_support.c +++ b/arch/x86/lib/fsp/fsp_support.c @@ -153,6 +153,7 @@ void fsp_init(u32 stack_top, u32 boot_mode, void *nvs_buf) shared_data.fsp_hdr = fsp_hdr; shared_data.stack_top = stack_top; + shared_data.boot_mode = boot_mode; post_code(POST_PRE_MRC); -- 1.8.2.1