Commit d314253f authored by Stephanos Ioannidis's avatar Stephanos Ioannidis Committed by Ioannis Glaropoulos
Browse files

soc: arm: xilinx_zynqmp: Relocate platform-specific initialisation.



This commit relocates the exception vector table address range
configuration routine that was previously implemented as part of
Cortex-R architecture reset function to SoC platform-specific
initialisation routine.

Signed-off-by: default avatarStephanos Ioannidis <root@stephanos.io>
parent bc8524eb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9,3 +9,4 @@ config SOC_XILINX_ZYNQMP_RPU
	select GIC_V1
	select MULTI_LEVEL_INTERRUPTS
	select 2ND_LEVEL_INTERRUPTS
	select PLATFORM_SPECIFIC_INIT
+12 −1
Original line number Diff line number Diff line
@@ -9,7 +9,6 @@
#include <device.h>
#include <init.h>

#include <arch/cpu.h>
/**
 *
 * @brief Perform basic hardware initialization
@@ -29,3 +28,15 @@ static int soc_init(struct device *arg)
}

SYS_INIT(soc_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

void z_platform_init(void)
{
	/*
	 * Use normal exception vectors address range (0x0-0x1C).
	 */
	__asm__ volatile(
		"mrc p15, 0, r0, c1, c0, 0;"		/* SCTLR */
		"bic r0, r0, #" TOSTR(HIVECS) ";"	/* Clear HIVECS */
		"mcr p15, 0, r0, c1, c0, 0;"
		: : : "memory");
}