From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Fri, 18 Nov 2016 20:47:36 +0100 Subject: [U-Boot] [PATCH] ARM: socfpga: Add boot0 hook to prevent SPL corruption In-Reply-To: <20161116165414.11020-1-marex@denx.de> References: <20161116165414.11020-1-marex@denx.de> Message-ID: <20161118204736.3ba83db9@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 16 Nov 2016 17:54:14 +0100 Marek Vasut marex at denx.de wrote: ... > Add BOOT0 hook which reserves the area at offset 0x40..0x5f and > populates offset 0x50 with jump to the entry point. This way, the > preloader signature is stored in reserved space and can not corrupt > the SPL code. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Stefan Roese > --- > arch/arm/Kconfig | 1 + > arch/arm/mach-socfpga/include/mach/boot0.h | 28 ++++++++++++++++++++++++++++ > 2 files changed, 29 insertions(+) > create mode 100644 arch/arm/mach-socfpga/include/mach/boot0.h Tested-by: Anatolij Gustschin