microblaze: add Kconfig symbol for the vector base address
authorOvidiu Panait <ovidiu.panait@windriver.com>
Tue, 30 Nov 2021 16:33:55 +0000 (18:33 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 5 Jan 2022 09:22:03 +0000 (10:22 +0100)
MicroBlaze vector base address is configurable (hdl C_BASE_VECTORS
configuration parameter). Current code assumes that the reset vector
location is always 0x0.

Add the XILINX_MICROBLAZE0_VECTOR_BASE_ADDR Kconfig option so the user
can adjust the reset vector address.

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Link: https://lore.kernel.org/r/20211130163358.2531677-8-ovidiu.panait@windriver.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/microblaze-generic/Kconfig

index 3e3eca0..e31257d 100644 (file)
@@ -47,4 +47,11 @@ config XILINX_MICROBLAZE0_USR_EXCEP
          the exception vector table. The user exception vector is located at
          C_BASE_VECTORS + 0x8 address.
 
+config XILINX_MICROBLAZE0_VECTOR_BASE_ADDR
+       hex "Location of MicroBlaze vectors"
+       default 0x0
+       help
+         Memory address location of the exception vector table. It is
+         configurable via the C_BASE_VECTORS hdl parameter.
+
 endif