aarch64: Pass coreboot table in jmp_to_elf_entry
BUG=None BRANCH=none TEST=Boot to libpayload hello.c ELF at 0x80100000 which reads cb_table Change-Id: Ia1be4cb03386011a3184e76ed048cf589b390d11 Signed-off-by: Marcelo Povoa <marcelogp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/186929 Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
parent
ab3ecaff41
commit
3f854dccfd
1 changed files with 8 additions and 2 deletions
|
|
@ -17,11 +17,17 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <console/console.h>
|
||||
#include <arch/cache.h>
|
||||
#include <arch/stages.h>
|
||||
#include <cbmem.h>
|
||||
#include <console/console.h>
|
||||
|
||||
void jmp_to_elf_entry(void *entry, unsigned long buffer, unsigned long size)
|
||||
{
|
||||
void (*doit)(void *) = entry;
|
||||
void *cb_tables = cbmem_find(CBMEM_ID_CBTABLE);
|
||||
|
||||
printk(BIOS_SPEW, "entry = %p\n", entry);
|
||||
stage_exit(entry);
|
||||
cache_sync_instructions();
|
||||
doit(cb_tables);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue