mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 09:42:22 +02:00
Change stub example to use asm-generic/sections.h
We can use the declarations of __bss_start and _end from this header instead of declaring them locally. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
static inline unsigned long bss_start(void)
|
||||
{
|
||||
extern ulong __bss_start;
|
||||
extern char __bss_start[];
|
||||
return (unsigned long) &__bss_start;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ static inline unsigned long bss_end(void)
|
||||
|
||||
static inline unsigned long image_copy_end(void)
|
||||
{
|
||||
extern ulong __image_copy_end;
|
||||
extern char __image_copy_end[];
|
||||
return (unsigned long) &__image_copy_end;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user