Daniel Schwierzeck | e034ea3 | 2012-06-03 23:46:04 +0200 | [diff] [blame] | 1 | /* |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 2 | * SPDX-License-Identifier: GPL-2.0+ |
Daniel Schwierzeck | e034ea3 | 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 | a52852c | 2013-02-12 22:22:12 +0100 | [diff] [blame] | 7 | static inline unsigned long bss_start(void) |
| 8 | { |
Simon Glass | 716cc8c | 2013-03-05 14:39:39 +0000 | [diff] [blame] | 9 | extern char __bss_start[]; |
Daniel Schwierzeck | a52852c | 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 | 3420bf1 | 2013-02-12 22:22:12 +0100 | [diff] [blame] | 19 | static inline unsigned long image_copy_end(void) |
| 20 | { |
Simon Glass | 716cc8c | 2013-03-05 14:39:39 +0000 | [diff] [blame] | 21 | extern char __image_copy_end[]; |
Daniel Schwierzeck | 3420bf1 | 2013-02-12 22:22:12 +0100 | [diff] [blame] | 22 | return (unsigned long) &__image_copy_end; |
| 23 | } |
| 24 | |
Daniel Schwierzeck | e034ea3 | 2012-06-03 23:46:04 +0200 | [diff] [blame] | 25 | extern int incaip_set_cpuclk(void); |