diff options
author | Po-Yu Chuang <ratbert@faraday-tech.com> | 2011-03-01 22:59:59 +0000 |
---|---|---|
committer | Albert Aribaud <albert.aribaud@free.fr> | 2011-03-27 19:18:37 +0200 |
commit | 44c6e6591cb451ae606f8bde71dd5fb7b4002544 (patch) | |
tree | d1fd2c25a1590f9a19a814b1f5d4c61186d8cc86 /examples/standalone/stubs.c | |
parent | 55f7934d2b07a62027cb05484ea3f10666a855d1 (diff) | |
download | u-boot-imx-44c6e6591cb451ae606f8bde71dd5fb7b4002544.zip u-boot-imx-44c6e6591cb451ae606f8bde71dd5fb7b4002544.tar.gz u-boot-imx-44c6e6591cb451ae606f8bde71dd5fb7b4002544.tar.bz2 |
rename _end to __bss_end__
Currently, _end is used for end of BSS section. We want _end to mean
end of u-boot image, so we rename _end to __bss_end__ first.
Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
Diffstat (limited to 'examples/standalone/stubs.c')
-rw-r--r-- | examples/standalone/stubs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/standalone/stubs.c b/examples/standalone/stubs.c index 2d2e709..1379df7 100644 --- a/examples/standalone/stubs.c +++ b/examples/standalone/stubs.c @@ -187,14 +187,14 @@ void __attribute__((unused)) dummy(void) #include <_exports.h> } -extern unsigned long __bss_start, _end; +extern unsigned long __bss_start, __bss_end__; void app_startup(char * const *argv) { unsigned char * cp = (unsigned char *) &__bss_start; /* Zero out BSS */ - while (cp < (unsigned char *)&_end) { + while (cp < (unsigned char *)&__bss_end__) { *cp++ = 0; } |