Skip to contentSkip to conversation

lib/asm-offsets - make GD_RELOCADDR, GD_RELOC_OFF & GD_START_ADDR_SP available for all architectures

PATCH In review Alexey Brodkin 3 participants 3 messages Feb 25, 2015 – Mar 6, 2015 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/asm-offsets - make GD_RELOCADDR, GD_RELOC_OFF & GD_START_ADDR_SP available for all architectures

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.

---
 lib/asm-offsets.c | 4 ----
 1 file changed, 4 deletions(-)
lib/asm-offsets.c +0 -4
index 129bc3e..221ebbf 100644
@@ -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;
 }
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/1 lib/asm-offsets - make GD_RELOCADDR, GD_RELOC_OFF & GD_START_ADDR_SP available for all architectures

Quoted 10 lines · Alexey Brodkin

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.

---
 lib/asm-offsets.c | 4 ----
 1 file changed, 4 deletions(-)
Quoted 24 lines
lib/asm-offsets.c +0 -5
index 129bc3e..221ebbf 100644
@@ -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

#2 lore raw
In reply to Alexey Brodkin
Quoted 8 lines · Alexey Brodkin

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.

Applied to u-boot/master, thanks!

Signature · 8 lines
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>