Thomas Chou | 8cbb0dd | 2010-04-21 08:40:59 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * text_base |
| 3 | * |
| 4 | * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | #include <config.h> |
| 11 | |
| 12 | #ifdef CONFIG_SYS_MONITOR_BASE |
| 13 | .text |
| 14 | /* text base used in link script u-boot.lds */ |
| 15 | .global text_base |
| 16 | .equ text_base,CONFIG_SYS_MONITOR_BASE |
| 17 | /* dummy func to let linker include this file */ |
| 18 | .global text_base_hook |
| 19 | text_base_hook: |
| 20 | ret |
| 21 | #endif |