public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Igor Grinberg <grinberg@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/9] arm: Add warnings about using gdata
Date: Tue, 30 Dec 2014 09:39:50 +0200	[thread overview]
Message-ID: <54A256C6.5020908@compulab.co.il> (raw)
In-Reply-To: <CAPnjgZ2FKyUWWDEesw3PsuZhu4mWaxc-cHjtqkrsFOEmY-AXqw@mail.gmail.com>

Hi Simon,

On 12/29/14 18:24, Simon Glass wrote:
> Hi Igor,
> 
> On 23 December 2014 at 23:53, Igor Grinberg <grinberg@compulab.co.il> wrote:
>> Hi Simon,
>>
>> On 12/23/14 21:04, Simon Glass wrote:
>>> We need to get rid of this SPL-specific setting of the global_data pointer.
>>> It is already set up in start.S immediately before board_init_f() is called,
>>> and there may be information there that is needed (e.g. pre-reloc malloc
>>> info).
>>>
>>> Signed-off-by: Simon Glass <sjg@chromium.org>
>>> ---
>>>
>>>  arch/arm/lib/spl.c | 7 ++++++-
>>>  1 file changed, 6 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c
>>> index dfcc596..c41850a 100644
>>> --- a/arch/arm/lib/spl.c
>>> +++ b/arch/arm/lib/spl.c
>>> @@ -15,6 +15,11 @@
>>>
>>>  /* Pointer to as well as the global data structure for SPL */
>>>  DECLARE_GLOBAL_DATA_PTR;
>>> +
>>> +/*
>>> + * WARNING: This is going away very soon. Don't use it and don't submit
>>> + * pafches that rely on it. The global_data area is set up in crt0.S.
>>> + */
>>>  gd_t gdata __attribute__ ((section(".data")));
>>>
>>>  /*
>>> @@ -28,7 +33,7 @@ void __weak board_init_f(ulong dummy)
>>>       /* Clear the BSS. */
>>>       memset(__bss_start, 0, __bss_end - __bss_start);
>>>
>>> -     /* Set global data pointer. */
>>> +     /* TODO: Remove settings of the global data pointer here */
>>
>> Why do you need this patch at all if you remove this stuff in 9/9?
> 
> I imagine that 9/9 might take some time to be applied, since it needs
> testing, so I've put that in as a clean-up patch.

I personally, like this patch set and think we should move forward with it.
We'll give it a try (hopefully this week), but I don't think it should be
merged before the next merge window.
Is this (1/9) patch intended to go in during the rc?

>>
>>>       gd = &gdata;
>>>
>>>       board_init_r(NULL, 0);
> 
> Regards,
> Simon
> 

-- 
Regards,
Igor.

  reply	other threads:[~2014-12-30  7:39 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-23 19:04 [U-Boot] [PATCH 0/9] Remove use of gdata for global_data Simon Glass
2014-12-23 19:04 ` [U-Boot] [PATCH 1/9] arm: Add warnings about using gdata Simon Glass
2014-12-24  6:53   ` Igor Grinberg
2014-12-29 16:24     ` Simon Glass
2014-12-30  7:39       ` Igor Grinberg [this message]
2014-12-30 22:12         ` Simon Glass
2015-01-20 21:40   ` [U-Boot] [U-Boot,1/9] " Tom Rini
2014-12-23 19:04 ` [U-Boot] [PATCH 2/9] sunxi: Move SPL s_init() code to board_init_f() Simon Glass
2014-12-28  9:19   ` Ian Campbell
2014-12-29 16:15     ` Simon Glass
2015-01-30 17:53       ` Siarhei Siamashka
2015-02-01 16:29         ` Simon Glass
2015-02-01 16:45           ` Siarhei Siamashka
2015-02-01 17:00             ` Simon Glass
2015-02-01 18:37               ` Siarhei Siamashka
2015-02-01 20:59                 ` Simon Glass
2015-02-02  8:07                   ` Hans de Goede
2015-02-03  5:29                     ` Simon Glass
2015-02-04  0:55                       ` Simon Glass
2015-02-04  1:58                         ` Siarhei Siamashka
2015-02-04  3:23                           ` Simon Glass
2015-02-04  4:14                             ` Simon Glass
2015-01-20 21:40   ` [U-Boot] [U-Boot, " Tom Rini
2014-12-23 19:04 ` [U-Boot] [PATCH 3/9] sunxi: Drop use of lowlevel_init() Simon Glass
2014-12-28  9:10   ` Ian Campbell
2015-01-20 21:40   ` [U-Boot] [U-Boot,3/9] " Tom Rini
2014-12-23 19:04 ` [U-Boot] [PATCH 4/9] arm: Reduce the scope " Simon Glass
2014-12-23 19:04 ` [U-Boot] [PATCH 5/9] zynq: Remove reference to gdata Simon Glass
2015-01-20 21:40   ` [U-Boot] [U-Boot,5/9] " Tom Rini
2014-12-23 19:04 ` [U-Boot] [PATCH 6/9] imx: cm_fx6: " Simon Glass
2014-12-24  6:50   ` Igor Grinberg
2014-12-31 12:25   ` Nikita Kiryanov
2015-01-20 21:40   ` [U-Boot] [U-Boot,6/9] " Tom Rini
2014-12-23 19:04 ` [U-Boot] [PATCH 7/9] imx: woodburn: " Simon Glass
2014-12-30 12:10   ` Stefano Babic
2015-01-20 21:40   ` [U-Boot] [U-Boot,7/9] " Tom Rini
2014-12-23 19:04 ` [U-Boot] [PATCH 8/9] imx: ls102xa: " Simon Glass
2015-01-20 21:40   ` [U-Boot] [U-Boot,8/9] " Tom Rini
2014-12-23 19:04 ` [U-Boot] [PATCH 9/9] arm: Drop gdata global_data variable in SPL Simon Glass
2014-12-28  9:09 ` [U-Boot] [PATCH 0/9] Remove use of gdata for global_data Ian Campbell
2015-01-19  6:48 ` Albert ARIBAUD

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=54A256C6.5020908@compulab.co.il \
    --to=grinberg@compulab.co.il \
    --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