lib/asm-offsets - make GD_RELOCADDR, GD_RELOC_OFF & GD_START_ADDR_SP available for all architectures
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.
Signed-off-by Alexey Brodkin <[email protected]>
Cc Simon Glass <[email protected]>
Cc Tom Rini <[email protected]>
--- lib/asm-offsets.c | 4 ---- 1 file changed, 4 deletions(-)
lib/asm-offsets.c +0 -4
@@ -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
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_SPare generic members of global data structure so why don't we allow architectures other than ARM to use it.Signed-off-by Alexey Brodkin <[email protected]>Cc Simon Glass <[email protected]>Cc Tom Rini <[email protected]>--- lib/asm-offsets.c | 4 ---- 1 file changed, 4 deletions(-)
Acked-by Simon Glass <[email protected]>
Quoted 24 lines
lib/asm-offsets.c +0
-5@@ -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
Quoted 8 lines · Alexey Brodkin
GD_RELOCADDR,GD_RELOC_OFF&GD_START_ADDR_SPare generic members of global data structure so why don't we allow architectures other than ARM to use it.Signed-off-by Alexey Brodkin <[email protected]>Cc Simon Glass <[email protected]>Cc Tom Rini <[email protected]>Acked-by Simon Glass <[email protected]>
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>