From 57baa379cf2f67df89a5c6052767fd25daff20bd Mon Sep 17 00:00:00 2001 From: Scott McNutt Date: Mon, 23 Nov 2009 15:54:25 -0500 Subject: Nios2/Nios: Remove unnecessary (residual) linker Nios command scripts from the standalone examples. Signed-off-by: Scott McNutt --- lib_nios2/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib_nios2') diff --git a/lib_nios2/config.mk b/lib_nios2/config.mk index 34ee6977d..be4063928 100644 --- a/lib_nios2/config.mk +++ b/lib_nios2/config.mk @@ -24,7 +24,7 @@ CROSS_COMPILE ?= nios2-elf- -STANDALONE_LOAD_ADDR = 0x02000000 -L $(gcclibdir) -T nios2.lds +STANDALONE_LOAD_ADDR = 0x02000000 -L $(gcclibdir) PLATFORM_CPPFLAGS += -DCONFIG_NIOS2 -D__NIOS2__ PLATFORM_CPPFLAGS += -ffixed-r15 -G0 -- cgit v1.2.3 From de03825386eaedb5e17261dd87cde86e9a764ba9 Mon Sep 17 00:00:00 2001 From: Scott McNutt Date: Mon, 23 Nov 2009 16:29:40 -0500 Subject: Nios2: Fix compiler warnings in lib_nios2/board.c (unused variables) Signed-off-by: Scott McNutt --- lib_nios2/board.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib_nios2') diff --git a/lib_nios2/board.c b/lib_nios2/board.c index 008f04f95..41d329719 100644 --- a/lib_nios2/board.c +++ b/lib_nios2/board.c @@ -83,8 +83,6 @@ void board_init (void) { bd_t *bd; init_fnc_t **init_fnc_ptr; - char *s, *e; - int i; /* Pointer is writable since we allocated a register for it. * Nios treats CONFIG_SYS_GBL_DATA_OFFSET as an address. -- cgit v1.2.3 From 0a7691e820e33b23f61c6ea0ef6fa72099d1a6ae Mon Sep 17 00:00:00 2001 From: Renato Andreola Date: Mon, 23 Nov 2009 16:45:14 -0500 Subject: Nios2: do_boom_linux(): kernel gunzip input data integrity problem due to missing cache flush. Added instruction and data caches flush. Signed-off-by: Scott McNutt --- lib_nios2/bootm.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib_nios2') diff --git a/lib_nios2/bootm.c b/lib_nios2/bootm.c index 53fd5691a..675bfac63 100644 --- a/lib_nios2/bootm.c +++ b/lib_nios2/bootm.c @@ -24,6 +24,7 @@ #include #include #include +#include int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) { @@ -32,6 +33,10 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) if ((flag != 0) && (flag != BOOTM_STATE_OS_GO)) return 1; + /* flushes data and instruction caches before calling the kernel */ + flush_dcache (0,CONFIG_SYS_DCACHE_SIZE); + flush_icache (0,CONFIG_SYS_ICACHE_SIZE); + /* For now we assume the Microtronix linux ... which only * needs to be called ;-) */ -- cgit v1.2.3