Fixes for gcc 3.4 based m68k toolchain,

based on patch by Jate Sujjavanich.
This commit is contained in:
Marian Balakowicz 2006-05-09 11:28:36 +02:00
parent 7a635e004e
commit 483a0cf804
6 changed files with 20 additions and 2 deletions

View File

@ -2,6 +2,9 @@
Changes since U-Boot 1.1.4: Changes since U-Boot 1.1.4:
====================================================================== ======================================================================
* Fixes for gcc 3.4 based m68k toolchain,
based on patch by Jate Sujjavanich.
* Added support for BC3450 board * Added support for BC3450 board
Patch by Stefan Strobl, 21. Oct 2005 Patch by Stefan Strobl, 21. Oct 2005

View File

@ -65,6 +65,7 @@ void flash_print_info (flash_info_t * info)
printf ("\n"); printf ("\n");
Done: Done:
return;
} }

View File

@ -65,6 +65,7 @@ void flash_print_info (flash_info_t * info)
printf ("\n"); printf ("\n");
Done: Done:
return;
} }

View File

@ -65,6 +65,7 @@ void flash_print_info (flash_info_t * info)
printf ("\n"); printf ("\n");
Done: Done:
return;
} }

View File

@ -143,7 +143,14 @@ CFLAGS := $(CPPFLAGS) -Wall -Wno-trigraphs
endif endif
endif endif
# turn jbsr into jsr for m68k
ifeq ($(ARCH),m68k)
ifeq ($(findstring 3.4,$(shell $(CC) --version)),3.4)
AFLAGS_DEBUG := -Wa,-gstabs,-S
endif
else
AFLAGS_DEBUG := -Wa,-gstabs AFLAGS_DEBUG := -Wa,-gstabs
endif
AFLAGS := $(AFLAGS_DEBUG) -D__ASSEMBLY__ $(CPPFLAGS) AFLAGS := $(AFLAGS_DEBUG) -D__ASSEMBLY__ $(CPPFLAGS)
LDFLAGS += -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) $(PLATFORM_LDFLAGS) LDFLAGS += -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) $(PLATFORM_LDFLAGS)

View File

@ -261,6 +261,7 @@ board_init_f (ulong bootflag)
{ {
bd_t *bd; bd_t *bd;
ulong len, addr, addr_sp; ulong len, addr, addr_sp;
ulong *paddr;
gd_t *id; gd_t *id;
init_fnc_t **init_fnc_ptr; init_fnc_t **init_fnc_ptr;
#ifdef CONFIG_PRAM #ifdef CONFIG_PRAM
@ -357,8 +358,12 @@ board_init_f (ulong bootflag)
*/ */
addr_sp -= 16; addr_sp -= 16;
addr_sp &= ~0xF; addr_sp &= ~0xF;
*((ulong *) addr_sp)-- = 0;
*((ulong *) addr_sp)-- = 0; paddr = (ulong *)addr_sp;
*paddr-- = 0;
*paddr-- = 0;
addr_sp = (ulong)paddr;
debug ("Stack Pointer at: %08lx\n", addr_sp); debug ("Stack Pointer at: %08lx\n", addr_sp);
/* /*