9
0
Fork 0
barebox/arch/arm/mach-at91
Trent Piepho 1d31baf145 bootstrap: Boot barebox with kernel calling convention
In commit 8e3ddc13eb the bootm code was
changed to boot barebox using the same calling convention as the
kernel.  Which on ARM is to pass three arguments which are zero, an
architecture code, and a params pointer.

A 2nd stage barebox can be booted using lib/bootstrap, which is
different code from bootm.  This code just leaves garbage in the first
three parameters and so doesn't follow the convention.

Change it to be compatible with the ARM kernel booting convention.
This just sends a zero for the architecture, since the code for
architectures depends on boot[zmu] and something using bootstrap
wouldn't have those too.  And it just passes NULL for the params since
we don't have a way to pass a device tree from the preloader.

All users of bootstrap are ARM based, but the code is in lib so a
non-ARM board might someday make use of it.  If the current code would
work for them, then the change here will be ok too.

Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-12-14 11:13:32 +01:00
..
include/mach at91sam9x5: fix ROM base address (bugfix for nand ECC)i 2015-10-02 09:03:43 +02:00
Kconfig ARM: atmel: sama5d4_xplained: switch to env2 2015-03-12 08:30:49 +01:00
Makefile ARM: at91: add sama5d4ek board support 2014-09-24 06:46:53 +02:00
at91rm9200.c ARM: remove asm/hardware.h 2013-11-08 15:44:13 +01:00
at91rm9200_devices.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
at91rm9200_lowlevel_init.c ARM: change signature of barebox_arm_entry 2014-05-05 15:09:09 +02:00
at91rm9200_time.c restart: replace reset_cpu with registered restart handlers 2015-08-27 21:37:03 +02:00
at91sam9_reset.S restart: replace reset_cpu with registered restart handlers 2015-08-27 21:37:03 +02:00
at91sam9g45.c mach-at91: declare device tree clock 2014-09-10 08:19:04 +02:00
at91sam9g45_devices.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
at91sam9g45_lowlevel_init.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
at91sam9g45_reset.S restart: replace reset_cpu with registered restart handlers 2015-08-27 21:37:03 +02:00
at91sam9n12.c ARM: remove asm/hardware.h 2013-11-08 15:44:13 +01:00
at91sam9n12_devices.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
at91sam9n12_lowlevel_init.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
at91sam9x5.c ARM: remove asm/hardware.h 2013-11-08 15:44:13 +01:00
at91sam9x5_devices.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
at91sam9x5_lowlevel_init.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
at91sam926x_lowlevel_init.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
at91sam926x_time.c driver: workaroud resource request that conflicts with errno PTR 2015-01-08 08:07:58 +01:00
at91sam9260.c ARM: remove asm/hardware.h 2013-11-08 15:44:13 +01:00
at91sam9260_devices.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
at91sam9260_lowlevel_init.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
at91sam9261.c ARM: remove asm/hardware.h 2013-11-08 15:44:13 +01:00
at91sam9261_devices.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
at91sam9261_lowlevel_init.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
at91sam9263.c ARM: remove asm/hardware.h 2013-11-08 15:44:13 +01:00
at91sam9263_devices.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
at91sam9263_lowlevel_init.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
boot_test_cmd.c move file helper functions to separate file 2014-08-07 06:13:51 +02:00
bootstrap.c bootstrap: Boot barebox with kernel calling convention 2015-12-14 11:13:32 +01:00
clock.c ARM: AT91: Always provide clk_set_rate stub 2014-11-28 15:21:26 +01:00
clock.h ARM: at91: add sama5d4 soc support #1 2014-09-24 06:46:52 +02:00
generic.h at91: add irq fixup 2013-09-18 09:16:45 +02:00
irq_fixup.c ARM: at91: irq_fixup: Use __iomem specifier for memory pointer 2014-01-29 10:18:42 +01:00
sam9_smc.c Merge branch 'for-next/resource-err-ptr' 2014-10-02 08:54:42 +02:00
sama5d3.c ARM: at91: add sama5d36 SoC support 2014-03-31 08:33:10 +02:00
sama5d3_devices.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
sama5d3_lowlevel_init.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
sama5d4.c ARM: at91: add sama5d4 soc support #2 2014-09-24 06:46:53 +02:00
sama5d4_devices.c sizes.h: move include/sizes.h to include/linux/sizes.h 2015-01-08 14:00:26 +01:00
setup.c restart: replace reset_cpu with registered restart handlers 2015-08-27 21:37:03 +02:00
soc.h ARM: at91: add sama5d4 soc support #1 2014-09-24 06:46:52 +02:00