Daniel Schwierzeck | 2fbdb74 | 2012-06-03 23:46:04 +0200 | [diff] [blame] | 1 | /* |
| 2 | * This file is released under the terms of GPL v2 and any later version. |
| 3 | * See the file COPYING in the root directory of the source tree for details. |
| 4 | * |
| 5 | * Copyright (C) 2003 Wolfgang Denk, DENX Software Engineering, wd@denx.de |
| 6 | */ |
| 7 | |
Daniel Schwierzeck | 56b5ec7 | 2013-02-12 22:22:12 +0100 | [diff] [blame] | 8 | static inline unsigned long bss_start(void) |
| 9 | { |
Simon Glass | 5b92820 | 2013-03-05 14:39:39 +0000 | [diff] [blame] | 10 | extern char __bss_start[]; |
Daniel Schwierzeck | 56b5ec7 | 2013-02-12 22:22:12 +0100 | [diff] [blame] | 11 | return (unsigned long) &__bss_start; |
| 12 | } |
| 13 | |
| 14 | static inline unsigned long bss_end(void) |
| 15 | { |
| 16 | extern ulong __bss_end; |
| 17 | return (unsigned long) &__bss_end; |
| 18 | } |
| 19 | |
Daniel Schwierzeck | 9049d03 | 2013-02-12 22:22:12 +0100 | [diff] [blame] | 20 | static inline unsigned long image_copy_end(void) |
| 21 | { |
Simon Glass | 5b92820 | 2013-03-05 14:39:39 +0000 | [diff] [blame] | 22 | extern char __image_copy_end[]; |
Daniel Schwierzeck | 9049d03 | 2013-02-12 22:22:12 +0100 | [diff] [blame] | 23 | return (unsigned long) &__image_copy_end; |
| 24 | } |
| 25 | |
Daniel Schwierzeck | 2fbdb74 | 2012-06-03 23:46:04 +0200 | [diff] [blame] | 26 | extern int incaip_set_cpuclk(void); |