All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ovidiu Panait <ovidiu.panait@windriver.com>
To: <u-boot@lists.denx.de>
Cc: <monstr@monstr.eu>, Ovidiu Panait <ovidiu.panait@windriver.com>
Subject: [PATCH v2 08/10] microblaze: add Kconfig symbol for the vector base address
Date: Tue, 30 Nov 2021 18:33:55 +0200	[thread overview]
Message-ID: <20211130163358.2531677-8-ovidiu.panait@windriver.com> (raw)
In-Reply-To: <20211130163358.2531677-1-ovidiu.panait@windriver.com>

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>
---

Changes in v2:
Added Kconfig option description.

 board/xilinx/microblaze-generic/Kconfig | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/board/xilinx/microblaze-generic/Kconfig b/board/xilinx/microblaze-generic/Kconfig
index 3e3eca0e80..e31257d335 100644
--- a/board/xilinx/microblaze-generic/Kconfig
+++ b/board/xilinx/microblaze-generic/Kconfig
@@ -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
-- 
2.25.1


  parent reply	other threads:[~2021-11-30 16:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-30 16:33 [PATCH v2 01/10] xilinx: Kconfig: add XILINX_OF_BOARD_DTB_ADDR default value for microblaze Ovidiu Panait
2021-11-30 16:33 ` [PATCH v2 02/10] microblaze: u-boot.lds: replace __end symbol with _end Ovidiu Panait
2021-11-30 16:33 ` [PATCH v2 03/10] microblaze: spl: add board_boot_order() implementation Ovidiu Panait
2021-11-30 16:33 ` [PATCH v2 04/10] microblaze: Kconfig: SPL dependencies fixup Ovidiu Panait
2021-11-30 16:33 ` [PATCH v2 05/10] microblaze: start.S: use stack space as scratch memory for endian offset Ovidiu Panait
2021-11-30 16:33 ` [PATCH v2 06/10] microblaze: drop CONFIG_SYS_RESET_ADDRESS macro Ovidiu Panait
2021-11-30 16:33 ` [PATCH v2 07/10] microblaze: migrate CONFIG_SYS_USR_EXCEP to Kconfig Ovidiu Panait
2021-11-30 16:33 ` Ovidiu Panait [this message]
2021-11-30 16:33 ` [PATCH v2 09/10] microblaze: start.S: add support for configurable vector base address Ovidiu Panait
2021-11-30 16:33 ` [PATCH v2 10/10] microblaze: branch to base vector address on reset Ovidiu Panait
2021-12-01 10:10 ` [PATCH v2 01/10] xilinx: Kconfig: add XILINX_OF_BOARD_DTB_ADDR default value for microblaze Michal Simek
2021-12-01 17:49   ` Ovidiu Panait

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211130163358.2531677-8-ovidiu.panait@windriver.com \
    --to=ovidiu.panait@windriver.com \
    --cc=monstr@monstr.eu \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.