diff options
author | Tom Rini <trini@konsulko.com> | 2020-06-03 14:10:03 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-06-03 14:10:03 -0400 |
commit | 1b6ae82a5abb4cbedb0d6cb262526173f4efa486 (patch) | |
tree | 916aadd700c3c98d3f6b6929ef1249e38043e319 /arch/arm | |
parent | 0d8f35b58cc8458a5263b424896a386429ee49e5 (diff) | |
parent | a4292eccfdc98b51d0200a6c912af237aeddd5c8 (diff) |
Merge tag 'efi-2020-07-rc4' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for efi-2020-07-rc4
This patch series addresses the following issues:
* allow compiling with clang
* add missing function descriptions to the HTML documentation
* simplify the validation of UEFI images
* validate load options in the UEFI boot manager
In a preparatory patch a structure definition is moved.
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/include/asm/global_data.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h index f23b6bfb75..7c0905d240 100644 --- a/arch/arm/include/asm/global_data.h +++ b/arch/arm/include/asm/global_data.h @@ -117,4 +117,13 @@ static inline gd_t *get_gd(void) #endif #endif +static inline void set_gd(volatile gd_t *gd_ptr) +{ +#ifdef CONFIG_ARM64 + __asm__ volatile("ldr x18, %0\n" : : "m"(gd_ptr)); +#else + __asm__ volatile("ldr r9, %0\n" : : "m"(gd_ptr)); +#endif +} + #endif /* __ASM_GBL_DATA_H */ |