[U-Boot] [PATCH 1/2] ARM: Add save_boot_params for ARMv8
From: Stephen Warren Implement a hook to allow boards to save boot-time CPU state for later use. When U-Boot is chain-loaded by another bootloader, CPU registers may contain useful information such as system configuration information. This feature mirrors the equivalent ARMv7 feature. Signed-off-by: Stephen Warren --- arch/arm/cpu/armv8/start.S | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/cpu/armv8/start.S b/arch/arm/cpu/armv8/start.S index dfce46920668..f77fa44ad6c3 100644 --- a/arch/arm/cpu/armv8/start.S +++ b/arch/arm/cpu/armv8/start.S @@ -53,6 +53,11 @@ _bss_end_ofs: .quad __bss_end - _start reset: + /* Allow the board to save important registers */ + b save_boot_params +.globl save_boot_params_ret +save_boot_params_ret: + #ifdef CONFIG_SYS_RESET_SCTRL bl reset_sctrl #endif @@ -288,3 +293,7 @@ ENTRY(c_runtime_cpu_setup) ret ENDPROC(c_runtime_cpu_setup) + +WEAK(save_boot_params) + b save_boot_params_ret/* back to my caller */ +ENDPROC(save_boot_params) -- 2.9.2 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH 1/2] ARM: Add save_boot_params for ARMv8
On Mon, Jul 18, 2016 at 05:01:50PM -0600, Stephen Warren wrote: > From: Stephen Warren > > Implement a hook to allow boards to save boot-time CPU state for later > use. When U-Boot is chain-loaded by another bootloader, CPU registers may > contain useful information such as system configuration information. This > feature mirrors the equivalent ARMv7 feature. > > Signed-off-by: Stephen Warren Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH 1/2] ARM: Add save_boot_params for ARMv8
Tom, I'm going to take these 2 in via Tegra if that's OK with you. Expect a PR later today. Tom > -Original Message- > From: Tom Rini [mailto:tr...@konsulko.com] > Sent: Tuesday, July 19, 2016 7:22 PM > To: Stephen Warren > Cc: u-boot@lists.denx.de; Simon Glass ; Tom Warren > ; Stephen Warren ; Albert > Aribaud > Subject: Re: [PATCH 1/2] ARM: Add save_boot_params for ARMv8 > > * PGP Signed by an unknown key > > On Mon, Jul 18, 2016 at 05:01:50PM -0600, Stephen Warren wrote: > > > From: Stephen Warren > > > > Implement a hook to allow boards to save boot-time CPU state for later > > use. When U-Boot is chain-loaded by another bootloader, CPU registers > > may contain useful information such as system configuration > > information. This feature mirrors the equivalent ARMv7 feature. > > > > Signed-off-by: Stephen Warren > > Reviewed-by: Tom Rini > > -- > Tom > > * Unknown Key > * 0xD31D7652 -- nvpublic ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH 1/2] ARM: Add save_boot_params for ARMv8
On Thu, Jul 21, 2016 at 04:16:57PM +, Tom Warren wrote: > Tom, > > I'm going to take these 2 in via Tegra if that's OK with you. Expect a PR > later today. Sounds good, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot