diff options
author | Trent Piepho <tpiepho@kymetacorp.com> | 2015-12-10 20:00:50 +0000 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-12-14 11:13:32 +0100 |
commit | 1d31baf145c5af92f95cb30702bb5bc688f82903 (patch) | |
tree | 2a1518e3784c5066080b5e8fc81d4e404529ea99 /drivers/regulator/Kconfig | |
parent | a9e7e68279de3aec38b038211a15a80cfc612c4e (diff) | |
download | barebox-1d31baf145c5af92f95cb30702bb5bc688f82903.tar.gz barebox-1d31baf145c5af92f95cb30702bb5bc688f82903.tar.xz |
bootstrap: Boot barebox with kernel calling convention
In commit 8e3ddc13eb8239177ed20f119e3a3d02518b941d 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>
Diffstat (limited to 'drivers/regulator/Kconfig')
0 files changed, 0 insertions, 0 deletions