From: Alexander Graf Date: Wed, 2 Nov 2016 09:36:20 +0000 (+0100) Subject: bcm2835: Reserve the spin table in efi memory map X-Git-Tag: v2017.01-rc1~161 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1bcf7a30d81b0f770cb217dedef8e4034da9d87d;p=oweals%2Fu-boot.git bcm2835: Reserve the spin table in efi memory map Firmware provides a spin table on the raspberry pi. This table shouldn't get overwritten by payloads, so we need to mark it as reserved. Signed-off-by: Alexander Graf Acked-by: Stephen Warren --- diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 04f27b4b8f..22e87a2a13 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi/rpi/rpi.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -518,5 +519,10 @@ int ft_board_setup(void *blob, bd_t *bd) */ lcd_dt_simplefb_add_node(blob); +#ifdef CONFIG_EFI_LOADER + /* Reserve the spin table */ + efi_add_memory_map(0, 1, EFI_RESERVED_MEMORY_TYPE, 0); +#endif + return 0; }