Daniel Schwierzeck | 2fbdb74 | 2012-06-03 23:46:04 +0200 | [diff] [blame] | 1 | /* |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 2 | * SPDX-License-Identifier: GPL-2.0+ |
Daniel Schwierzeck | 2fbdb74 | 2012-06-03 23:46:04 +0200 | [diff] [blame] | 3 | * |
| 4 | * Copyright (C) 2003 Wolfgang Denk, DENX Software Engineering, wd@denx.de |
| 5 | */ |
| 6 | |
Daniel Schwierzeck | 56b5ec7 | 2013-02-12 22:22:12 +0100 | [diff] [blame] | 7 | static inline unsigned long bss_start(void) |
| 8 | { |
Simon Glass | 5b92820 | 2013-03-05 14:39:39 +0000 | [diff] [blame] | 9 | extern char __bss_start[]; |
Daniel Schwierzeck | 56b5ec7 | 2013-02-12 22:22:12 +0100 | [diff] [blame] | 10 | return (unsigned long) &__bss_start; |
| 11 | } |
| 12 | |
| 13 | static inline unsigned long bss_end(void) |
| 14 | { |
| 15 | extern ulong __bss_end; |
| 16 | return (unsigned long) &__bss_end; |
| 17 | } |
| 18 | |
Daniel Schwierzeck | 9049d03 | 2013-02-12 22:22:12 +0100 | [diff] [blame] | 19 | static inline unsigned long image_copy_end(void) |
| 20 | { |
Simon Glass | 5b92820 | 2013-03-05 14:39:39 +0000 | [diff] [blame] | 21 | extern char __image_copy_end[]; |
Daniel Schwierzeck | 9049d03 | 2013-02-12 22:22:12 +0100 | [diff] [blame] | 22 | return (unsigned long) &__image_copy_end; |
| 23 | } |