summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2006-08-31 13:08:46 +0000
committerNathan Sidwell <nathan@codesourcery.com>2006-08-31 13:08:46 +0000
commit7a9372e3a9750965c4c270363dbe684ac7ff0080 (patch)
tree74e2fd1c70b2225d47f1a48638f5520d9175ab1e
parent09a63eee98b5e5b12b439c313bf8b8d04759ddfe (diff)
downloadcygnal-7a9372e3a9750965c4c270363dbe684ac7ff0080.tar.gz
cygnal-7a9372e3a9750965c4c270363dbe684ac7ff0080.tar.bz2
cygnal-7a9372e3a9750965c4c270363dbe684ac7ff0080.zip
libgloss/
* m68k/bdm-crt1.c: Call hardware_init_hook before copying initialized data.
-rw-r--r--ChangeLog.csl4
-rw-r--r--libgloss/m68k/bdm-crt1.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl
index 9c5fc31e7..bc8e51443 100644
--- a/ChangeLog.csl
+++ b/ChangeLog.csl
@@ -1,6 +1,10 @@
2006-08-31 Nathan Sidwell <nathan@codesourcery.com>
libgloss/
+ * m68k/bdm-crt1.c: Call hardware_init_hook before copying
+ initialized data.
+
+ libgloss/
* m68k/Makefile.in (CF_BDM_SCRIPTS): Rename to CF_RAM_SCRIPTS.
(CF_SCRIPTS): Update.
(%-bdm.ld): Rename to %-ram.ld.
diff --git a/libgloss/m68k/bdm-crt1.c b/libgloss/m68k/bdm-crt1.c
index c9cfe649f..159e86a79 100644
--- a/libgloss/m68k/bdm-crt1.c
+++ b/libgloss/m68k/bdm-crt1.c
@@ -36,6 +36,9 @@ void __start1 (void)
{
unsigned ix;
+ if (hardware_init_hook)
+ hardware_init_hook ();
+
/* Set the VBR. */
__asm__ __volatile__ ("movec.l %0,%/vbr" :: "r" (__interrupt_vector));
@@ -44,8 +47,6 @@ void __start1 (void)
memcpy (__data_start, __data_load, __bss_start - __data_start);
memset (__bss_start, 0, __end - __bss_start);
- if (hardware_init_hook)
- hardware_init_hook ();
if (software_init_hook)
software_init_hook ();