mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +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:
@@ -217,16 +217,15 @@ void __attribute__((unused)) dummy(void)
|
||||
#include <_exports.h>
|
||||
}
|
||||
|
||||
extern unsigned long __bss_start, _end;
|
||||
#include <asm/sections.h>
|
||||
|
||||
void app_startup(char * const *argv)
|
||||
{
|
||||
unsigned char * cp = (unsigned char *) &__bss_start;
|
||||
char *cp = __bss_start;
|
||||
|
||||
/* Zero out BSS */
|
||||
while (cp < (unsigned char *)&_end) {
|
||||
while (cp < _end)
|
||||
*cp++ = 0;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_X86)
|
||||
/* x86 does not have a dedicated register for passing global_data */
|
||||
|
Reference in New Issue
Block a user