All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@xilinx.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 4/5] microblaze: Do not use CONFIG_SYS_GENERIC_GLOBAL_DATA
Date: Mon,  2 Feb 2015 16:46:18 +0100	[thread overview]
Message-ID: <2ec36ee6b2b040e5852d98499f3460a648da7f24.1422891972.git.michal.simek@xilinx.com> (raw)
In-Reply-To: <615eec5129d03589f4d10a356a31b52ac4483db0.1422891972.git.michal.simek@xilinx.com>

Because it is not compatible with DM where
malloc_base has to be available early and init
has to be done in ASM.

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

Changes in v2:
- New patch in the series

Moving it to C code is also possible.
---
 arch/microblaze/cpu/start.S          | 6 ++++++
 arch/microblaze/include/asm/config.h | 1 -
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/microblaze/cpu/start.S b/arch/microblaze/cpu/start.S
index 4023ec067531..3eeeab4b88d3 100644
--- a/arch/microblaze/cpu/start.S
+++ b/arch/microblaze/cpu/start.S
@@ -151,6 +151,7 @@ clear_bss:
 3:	/* jumping to board_init */
 #ifndef CONFIG_SPL_BUILD
 	or	r5, r0, r0	/* flags - empty */
+	addi    r31, r0, _gd
 	brai	board_init_f
 #else
 	addi	r31, r0, CONFIG_SYS_SPL_MALLOC_END
@@ -158,6 +159,11 @@ clear_bss:
 #endif
 1:	bri	1b

+ .section .bss
+.align 4
+_gd:
+         .space  GENERATED_GBL_DATA_SIZE
+
 #ifndef CONFIG_SPL_BUILD
 /*
  * Read 16bit little endian
diff --git a/arch/microblaze/include/asm/config.h b/arch/microblaze/include/asm/config.h
index 468673460bfb..32fd636b61df 100644
--- a/arch/microblaze/include/asm/config.h
+++ b/arch/microblaze/include/asm/config.h
@@ -13,6 +13,5 @@

 #define CONFIG_NR_DRAM_BANKS	1
 #define CONFIG_SYS_GENERIC_BOARD
-#define CONFIG_SYS_GENERIC_GLOBAL_DATA

 #endif
--
1.8.2.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150202/b94134bd/attachment.sig>

  parent reply	other threads:[~2015-02-02 15:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-02 15:46 [U-Boot] [PATCH v2 1/5] microblaze: Move architecture to use generic board init Michal Simek
2015-02-02 15:46 ` [U-Boot] [PATCH v2 2/5] microblaze: Speedup code copy Michal Simek
2015-02-02 15:46 ` [U-Boot] [PATCH v2 3/5] bdinfo: Show information about fdt blob via bdinfo Michal Simek
2015-02-02 15:46 ` Michal Simek [this message]
2015-02-02 15:46 ` [U-Boot] [PATCH v2 5/5] microblaze: Add support for CONFIG_SYS_MALLOC_F_LEN Michal Simek
2015-02-02 23:58 ` [U-Boot] [PATCH v2 1/5] microblaze: Move architecture to use generic board init Simon Glass
2015-02-03  9:26   ` Michal Simek
2015-02-04  0:33     ` Simon Glass

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=2ec36ee6b2b040e5852d98499f3460a648da7f24.1422891972.git.michal.simek@xilinx.com \
    --to=michal.simek@xilinx.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 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.