rearranged memory init.
This commit is contained in:
@@ -95,7 +95,6 @@ CSRCS= \
|
|||||||
|
|
||||||
ASRCS= \
|
ASRCS= \
|
||||||
$(SRCDIR)/startcf.S \
|
$(SRCDIR)/startcf.S \
|
||||||
$(SRCDIR)/mmu.S \
|
|
||||||
$(SRCDIR)/printf_helper.S \
|
$(SRCDIR)/printf_helper.S \
|
||||||
$(SRCDIR)/exceptions.S \
|
$(SRCDIR)/exceptions.S \
|
||||||
$(SRCDIR)/supervisor.S \
|
$(SRCDIR)/supervisor.S \
|
||||||
|
|||||||
@@ -32,6 +32,9 @@
|
|||||||
extern void init_fpga(void);
|
extern void init_fpga(void);
|
||||||
extern void init_usb(void);
|
extern void init_usb(void);
|
||||||
|
|
||||||
|
/* fault_vectors */
|
||||||
|
extern void setup_vectors(void);
|
||||||
|
|
||||||
#endif /* __SYSINIT_H__ */
|
#endif /* __SYSINIT_H__ */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1048,10 +1048,13 @@ void initialize_hardware(void)
|
|||||||
*/
|
*/
|
||||||
xprintf(" (revision %d)\r\n",((MCF_SIU_JTAGID & MCF_SIU_JTAGID_REV) >> 28));
|
xprintf(" (revision %d)\r\n",((MCF_SIU_JTAGID & MCF_SIU_JTAGID_REV) >> 28));
|
||||||
|
|
||||||
|
init_slt();
|
||||||
|
init_fbcs();
|
||||||
|
init_ddram();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* install (preliminary) exception vectors
|
* install (preliminary) exception vectors
|
||||||
*/
|
*/
|
||||||
extern void setup_vectors(void);
|
|
||||||
setup_vectors();
|
setup_vectors();
|
||||||
/* make sure the handlers are called */
|
/* make sure the handlers are called */
|
||||||
// __asm__ __volatile__("dc.w 0xafff"); /* should trigger a line-A exception */
|
// __asm__ __volatile__("dc.w 0xafff"); /* should trigger a line-A exception */
|
||||||
@@ -1076,10 +1079,6 @@ void initialize_hardware(void)
|
|||||||
0 /* leave core clock enabled */
|
0 /* leave core clock enabled */
|
||||||
);
|
);
|
||||||
|
|
||||||
init_slt();
|
|
||||||
init_fbcs();
|
|
||||||
init_ddram();
|
|
||||||
|
|
||||||
/* the following only makes sense _after_ DDRAM has been initialized */
|
/* the following only makes sense _after_ DDRAM has been initialized */
|
||||||
clear_bss_segment();
|
clear_bss_segment();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user