diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2006-08-31 17:08:46 +0400 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2006-08-31 17:08:46 +0400 |
commit | 7a9372e3a9750965c4c270363dbe684ac7ff0080 (patch) | |
tree | 74e2fd1c70b2225d47f1a48638f5520d9175ab1e /libgloss | |
parent | 09a63eee98b5e5b12b439c313bf8b8d04759ddfe (diff) |
libgloss/
* m68k/bdm-crt1.c: Call hardware_init_hook before copying
initialized data.
Diffstat (limited to 'libgloss')
-rw-r--r-- | libgloss/m68k/bdm-crt1.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 (); |