rearranged memory init.

This commit is contained in:
Markus Fröschle
2013-12-09 07:11:19 +00:00
parent b6ff1f0338
commit c6cebc5e97
3 changed files with 7 additions and 6 deletions

View File

@@ -1048,10 +1048,13 @@ void initialize_hardware(void)
*/
xprintf(" (revision %d)\r\n",((MCF_SIU_JTAGID & MCF_SIU_JTAGID_REV) >> 28));
init_slt();
init_fbcs();
init_ddram();
/*
* install (preliminary) exception vectors
*/
extern void setup_vectors(void);
setup_vectors();
/* make sure the handlers are called */
// __asm__ __volatile__("dc.w 0xafff"); /* should trigger a line-A exception */
@@ -1076,10 +1079,6 @@ void initialize_hardware(void)
0 /* leave core clock enabled */
);
init_slt();
init_fbcs();
init_ddram();
/* the following only makes sense _after_ DDRAM has been initialized */
clear_bss_segment();