mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00: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:
parent
e103b7ae90
commit
716cc8cc7f
4 changed files with 12 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue