From bfaf50a327c6682929475f2ee3515dba15142707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Mon, 9 Dec 2013 07:11:19 +0000 Subject: [PATCH] rearranged memory init. --- BaS_gcc/Makefile | 1 - BaS_gcc/include/sysinit.h | 3 +++ BaS_gcc/sources/sysinit.c | 9 ++++----- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/BaS_gcc/Makefile b/BaS_gcc/Makefile index 9547464..db739db 100644 --- a/BaS_gcc/Makefile +++ b/BaS_gcc/Makefile @@ -95,7 +95,6 @@ CSRCS= \ ASRCS= \ $(SRCDIR)/startcf.S \ - $(SRCDIR)/mmu.S \ $(SRCDIR)/printf_helper.S \ $(SRCDIR)/exceptions.S \ $(SRCDIR)/supervisor.S \ diff --git a/BaS_gcc/include/sysinit.h b/BaS_gcc/include/sysinit.h index b171bf1..b59707e 100644 --- a/BaS_gcc/include/sysinit.h +++ b/BaS_gcc/include/sysinit.h @@ -32,6 +32,9 @@ extern void init_fpga(void); extern void init_usb(void); +/* fault_vectors */ +extern void setup_vectors(void); + #endif /* __SYSINIT_H__ */ diff --git a/BaS_gcc/sources/sysinit.c b/BaS_gcc/sources/sysinit.c index 8e30abc..a534ee3 100644 --- a/BaS_gcc/sources/sysinit.c +++ b/BaS_gcc/sources/sysinit.c @@ -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();