rearranged memory init.
This commit is contained in:
1
Makefile
1
Makefile
@@ -95,7 +95,6 @@ CSRCS= \
|
||||
|
||||
ASRCS= \
|
||||
$(SRCDIR)/startcf.S \
|
||||
$(SRCDIR)/mmu.S \
|
||||
$(SRCDIR)/printf_helper.S \
|
||||
$(SRCDIR)/exceptions.S \
|
||||
$(SRCDIR)/supervisor.S \
|
||||
|
||||
@@ -32,6 +32,9 @@
|
||||
extern void init_fpga(void);
|
||||
extern void init_usb(void);
|
||||
|
||||
/* fault_vectors */
|
||||
extern void setup_vectors(void);
|
||||
|
||||
#endif /* __SYSINIT_H__ */
|
||||
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user