Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / u-boot / board / altera / nios2-generic / text_base.S
diff --git a/qemu/roms/u-boot/board/altera/nios2-generic/text_base.S b/qemu/roms/u-boot/board/altera/nios2-generic/text_base.S
new file mode 100644 (file)
index 0000000..f236db1
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * text_base
+ *
+ * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#include <config.h>
+
+#ifdef CONFIG_SYS_MONITOR_BASE
+       .text
+       /* text base used in link script u-boot.lds */
+       .global text_base
+       .equ text_base,CONFIG_SYS_MONITOR_BASE
+       /* dummy func to let linker include this file */
+       .global text_base_hook
+text_base_hook:
+       ret
+#endif