U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] lib/asm-offsets - make GD_RELOCADDR, GD_RELOC_OFF & GD_START_ADDR_SP available for all architectures
@ 2015-02-25 10:09 Alexey Brodkin
  2015-03-02 16:02 ` Simon Glass
  2015-03-06 15:47 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Alexey Brodkin @ 2015-02-25 10:09 UTC (permalink / raw)
  To: u-boot

GD_RELOCADDR, GD_RELOC_OFF & GD_START_ADDR_SP are generic members of
global data structure so why don't we allow architectures other than ARM
to use it.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@ti.com>
---
 lib/asm-offsets.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c
index 129bc3e..221ebbf 100644
--- a/lib/asm-offsets.c
+++ b/lib/asm-offsets.c
@@ -32,15 +32,11 @@ int main(void)
 	DEFINE(GD_MALLOC_BASE, offsetof(struct global_data, malloc_base));
 #endif
 
-#if defined(CONFIG_ARM)
-
 	DEFINE(GD_RELOCADDR, offsetof(struct global_data, relocaddr));
 
 	DEFINE(GD_RELOC_OFF, offsetof(struct global_data, reloc_off));
 
 	DEFINE(GD_START_ADDR_SP, offsetof(struct global_data, start_addr_sp));
 
-#endif
-
 	return 0;
 }
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] lib/asm-offsets - make GD_RELOCADDR, GD_RELOC_OFF & GD_START_ADDR_SP available for all architectures
  2015-02-25 10:09 [U-Boot] [PATCH] lib/asm-offsets - make GD_RELOCADDR, GD_RELOC_OFF & GD_START_ADDR_SP available for all architectures Alexey Brodkin
@ 2015-03-02 16:02 ` Simon Glass
  2015-03-06 15:47 ` [U-Boot] " Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Glass @ 2015-03-02 16:02 UTC (permalink / raw)
  To: u-boot

On 25 February 2015 at 03:09, Alexey Brodkin
<Alexey.Brodkin@synopsys.com> wrote:
> GD_RELOCADDR, GD_RELOC_OFF & GD_START_ADDR_SP are generic members of
> global data structure so why don't we allow architectures other than ARM
> to use it.
>
> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Tom Rini <trini@ti.com>
> ---
>  lib/asm-offsets.c | 4 ----
>  1 file changed, 4 deletions(-)

Acked-by: Simon Glass <sjg@chromium.org>

>
> diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c
> index 129bc3e..221ebbf 100644
> --- a/lib/asm-offsets.c
> +++ b/lib/asm-offsets.c
> @@ -32,15 +32,11 @@ int main(void)
>         DEFINE(GD_MALLOC_BASE, offsetof(struct global_data, malloc_base));
>  #endif
>
> -#if defined(CONFIG_ARM)
> -
>         DEFINE(GD_RELOCADDR, offsetof(struct global_data, relocaddr));
>
>         DEFINE(GD_RELOC_OFF, offsetof(struct global_data, reloc_off));
>
>         DEFINE(GD_START_ADDR_SP, offsetof(struct global_data, start_addr_sp));
>
> -#endif
> -
>         return 0;
>  }
> --
> 2.1.0
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] lib/asm-offsets - make GD_RELOCADDR, GD_RELOC_OFF & GD_START_ADDR_SP available for all architectures
  2015-02-25 10:09 [U-Boot] [PATCH] lib/asm-offsets - make GD_RELOCADDR, GD_RELOC_OFF & GD_START_ADDR_SP available for all architectures Alexey Brodkin
  2015-03-02 16:02 ` Simon Glass
@ 2015-03-06 15:47 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2015-03-06 15:47 UTC (permalink / raw)
  To: u-boot

On Wed, Feb 25, 2015 at 01:09:20PM +0300, Alexey Brodkin wrote:

> GD_RELOCADDR, GD_RELOC_OFF & GD_START_ADDR_SP are generic members of
> global data structure so why don't we allow architectures other than ARM
> to use it.
> 
> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Tom Rini <trini@ti.com>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150306/d045e94f/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-06 15:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-25 10:09 [U-Boot] [PATCH] lib/asm-offsets - make GD_RELOCADDR, GD_RELOC_OFF & GD_START_ADDR_SP available for all architectures Alexey Brodkin
2015-03-02 16:02 ` Simon Glass
2015-03-06 15:47 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox