rearranged memory init.

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

View File

@@ -95,7 +95,6 @@ CSRCS= \
ASRCS= \
$(SRCDIR)/startcf.S \
$(SRCDIR)/mmu.S \
$(SRCDIR)/printf_helper.S \
$(SRCDIR)/exceptions.S \
$(SRCDIR)/supervisor.S \

View File

@@ -32,6 +32,9 @@
extern void init_fpga(void);
extern void init_usb(void);
/* fault_vectors */
extern void setup_vectors(void);
#endif /* __SYSINIT_H__ */

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();