blob: a5b2fc08f87926fe8a27a95a054dac9b22e8764e [file] [log] [blame]
Daniel Schwierzecke034ea32012-06-03 23:46:04 +02001/*
Wolfgang Denk1a459662013-07-08 09:37:19 +02002 * SPDX-License-Identifier: GPL-2.0+
Daniel Schwierzecke034ea32012-06-03 23:46:04 +02003 *
4 * Copyright (C) 2003 Wolfgang Denk, DENX Software Engineering, wd@denx.de
5 */
6
Daniel Schwierzecka52852c2013-02-12 22:22:12 +01007static inline unsigned long bss_start(void)
8{
Simon Glass716cc8c2013-03-05 14:39:39 +00009 extern char __bss_start[];
Daniel Schwierzecka52852c2013-02-12 22:22:12 +010010 return (unsigned long) &__bss_start;
11}
12
13static inline unsigned long bss_end(void)
14{
15 extern ulong __bss_end;
16 return (unsigned long) &__bss_end;
17}
18
Daniel Schwierzeck3420bf12013-02-12 22:22:12 +010019static inline unsigned long image_copy_end(void)
20{
Simon Glass716cc8c2013-03-05 14:39:39 +000021 extern char __image_copy_end[];
Daniel Schwierzeck3420bf12013-02-12 22:22:12 +010022 return (unsigned long) &__image_copy_end;
23}