9
0
Fork 0
Commit Graph

31 Commits

Author SHA1 Message Date
Sascha Hauer 351058fa51 bootm: push relocate_image up to the generic command
All handlers used to just relocate the image without any checks, so
we are doomed if we write outside of SDRAM or will overwrite ourselves.
Move the relocation up to the generic part where we have a chance
of catching these issues.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-11-29 20:59:56 +01:00
Sascha Hauer 0fc7fb6b4f rename include/mem_malloc.h to include/memory.h
Which is a better name and also better to collect other
things.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-09-23 16:32:48 +02:00
Sascha Hauer e0024d74cb blackfin: fix printf compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-07 11:35:46 +01:00
Jean-Christophe PLAGNIOL-VILLARD f69626c632 clocksource: switch mask to CLOCKSOURCE_MASK
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-29 21:55:25 +01:00
Robert Schwebel 724d3d8672 reset_cpu: unify declaration
include/common.h declares this as "unsigned long addr", so we unify it.
This also silences a doxygen warning.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-22 20:47:02 +02:00
Jean-Christophe PLAGNIOL-VILLARD a3c1e5d888 Replace direct header access with the API routines
Copied from U-Boot

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-10-08 00:04:28 +08:00
Sascha Hauer f7403928a9 Revert "Replace direct header access with the API routines"
This reverts commit 0ceafe14be.

Conflicts:

	include/image.h

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-07 14:11:38 +02:00
Jean-Christophe PLAGNIOL-VILLARD 0ceafe14be Replace direct header access with the API routines
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-24 08:46:22 +02:00
Sascha Hauer 56299cc7fd remove now unused arch_execute
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer 2bd7418a04 blackfin: implement arch_shutdown call
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer e11c07c339 make reset_cpu a __noreturn function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer abb8c0f1d7 fix arch_execute prototype
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-17 13:36:43 +01:00
Sascha Hauer a3ffa97f40 rename U-Boot-v2 project to barebox
This has been done with the following script:

find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \
	-e 's/u2boot/barebox/g' \
	-e 's/U2Boot/barebox/g' \
	-e 's/U-boot V2/barebox/g' \
	-e 's/u-boot v2/barebox/g' \
	-e 's/U-Boot V2/barebox/g' \
	-e 's/U-Boot-v2/barebox/g' \
	-e 's/U_BOOT/BAREBOX/g' \
	-e 's/UBOOT/BAREBOX/g' \
	-e 's/uboot/barebox/g' \
	-e 's/u-boot/barebox/g' \
	-e 's/u_boot/barebox/g' \
	-e 's/U-Boot/barebox/g' \
	-e 's/U-boot/barebox/g' \
	-e 's/U-BOOT/barebox/g'

find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \
	xargs -0 -r rename 's/u[-_]?boot/barebox/'

It needs some manual fixup following in the next patch

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-15 10:18:30 +01:00
Sascha Hauer 2af6483cbf [blackfin] memory layout related compile fixes 2008-07-03 09:07:15 +02:00
Sascha Hauer a28726cf51 [blackfin]: register handler for booting linux images 2008-02-21 13:18:53 +01:00
Sascha Hauer bf4d8056b0 Blackfin: Need to mask all interrupts before starting Linux.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2007-10-23 12:25:14 +02:00
Sascha Hauer ae53e9ef1d CONFIG_MODULE -> CONFIG_MODULES 2007-10-04 12:33:03 +02:00
Sascha Hauer a95a54b808 add blackfin specific bits for module handling 2007-09-28 20:35:40 +02:00
Sascha Hauer b3dc734018 declare lots of functions static 2007-09-28 10:07:26 +02:00
Sascha Hauer ccb593dfde blackfin_linux.c: disable icache unconditionally. If I understand the
Manual correctly, there is no need to invalidate the cache beforehand
(in fact on my board this function crashes)
2007-09-27 12:16:40 +02:00
Sascha Hauer d7034dbb8c ups. mixed up start and end in blackfin_mem_malloc_init 2007-09-27 12:09:01 +02:00
Sascha Hauer 89e2e40338 add blackfin cache and traps handling 2007-09-16 11:24:28 +02:00
Sascha Hauer c306c164f0 make blackfin linux start function functional 2007-09-16 11:18:53 +02:00
Sascha Hauer 4940e0f3d5 remove unused blackfin_board.h 2007-09-16 11:18:03 +02:00
Sascha Hauer ca8ae5695a add the possibility to have a arch specific 'go' command. Some
architectures need this (e.g. blackfin and i386)
2007-09-16 11:16:08 +02:00
Sascha Hauer 8c42a8f67c first maybe-working blackfin linux boot function 2007-09-13 15:35:49 +02:00
Sascha Hauer 7bb828e9db add missing files to arch/blackfin/lib/Makefile 2007-09-13 15:34:26 +02:00
Sascha Hauer 797a46d463 remove cli/sti from arch/blackfin/lib/cpu.c. We do not use interrupts 2007-09-13 15:30:38 +02:00
Sascha Hauer da6f7dbdf4 move blackfin cache functions to arch/blackfin/lib/cpu.c 2007-09-12 17:23:46 +02:00
Sascha Hauer 12d14272c7 rename bf533_linux.c -> blackfin_linux.c 2007-09-12 17:23:10 +02:00
Sascha Hauer 97c0278dc1 initial blackfin support 2007-09-11 10:15:32 +02:00