u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@amd.com>
To: <u-boot@lists.denx.de>, <git@xilinx.com>
Cc: Tom Rini <trini@konsulko.com>
Subject: [PATCH 4/5] riscv: mbv: Moving little_endian variable to data section
Date: Wed, 14 Feb 2024 12:52:32 +0100	[thread overview]
Message-ID: <934dc8871c59265eb9d8012193aa97d9b8bd7f33.1707911544.git.michal.simek@amd.com> (raw)
In-Reply-To: <cover.1707911544.git.michal.simek@amd.com>

SPL is cleaning bss after calling board_init_f. Setting up console is done
and little_endian global variable is cleared which caused that console
stops to work. That's why move it to data seciton now. The patch should be
reverted when bss is cleared before board_init_f is called.

Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 drivers/serial/serial_xuartlite.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/serial/serial_xuartlite.c b/drivers/serial/serial_xuartlite.c
index b6197da97cc1..35df413321fe 100644
--- a/drivers/serial/serial_xuartlite.c
+++ b/drivers/serial/serial_xuartlite.c
@@ -23,7 +23,7 @@
 #define ULITE_CONTROL_RST_TX	0x01
 #define ULITE_CONTROL_RST_RX	0x02
 
-static bool little_endian;
+static bool little_endian __section(".data");
 
 struct uartlite {
 	unsigned int rx_fifo;
-- 
2.36.1


  parent reply	other threads:[~2024-02-14 11:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-14 11:52 [PATCH 0/5] riscv: mbv: Enhance MB-V support with also enabling SPL Michal Simek
2024-02-14 11:52 ` [PATCH 1/5] riscv: mbv: Align addresses with default DT Michal Simek
2024-02-14 11:52 ` [PATCH 2/5] riscv: mbv: Enable REMAKE_ELF by default Michal Simek
2024-02-14 11:52 ` [PATCH 3/5] riscv: mbv: Switch to OF_SEPARATE with fixed address Michal Simek
2024-02-14 11:52 ` Michal Simek [this message]
2024-02-14 11:52 ` [PATCH 5/5] riscv: mbv: Enable SPL and binman Michal Simek
2024-03-01  7:42 ` [PATCH 0/5] riscv: mbv: Enhance MB-V support with also enabling SPL Michal Simek

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=934dc8871c59265eb9d8012193aa97d9b8bd7f33.1707911544.git.michal.simek@amd.com \
    --to=michal.simek@amd.com \
    --cc=git@xilinx.com \
    --cc=trini@konsulko.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).