arm64: Prepare ARM64 for building

There were a number of issues with the ARM64 build files. This
patch ports the following changes from ARMV4/V7 to ARMV8:

  - make armv8 Kconfig options consistent with armv4/v7
  - fix build include issues in boot.c, tables.c,
    and early_variables.h by matching armv4/v7.

    Change-Id: I57359a96821d88c50f48dc0bb6ad226cacb0c2ec
    Signed-off-by: Marc Jones <marc.jones@se-eng.com>

Change-Id: Iacd95d336559c45458784d1da67bde62a0956620
Reviewed-on: http://review.coreboot.org/8236
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Marc Jones
2015-01-16 13:45:23 -07:00
parent c4dbdaf50a
commit 17b9c198e0
6 changed files with 39 additions and 34 deletions

View File

@@ -21,13 +21,14 @@
#include <arch/stages.h>
#include <cbmem.h>
#include <console/console.h>
#include <payload_loader.h>
void jmp_to_elf_entry(void *entry, unsigned long buffer, unsigned long size)
void arch_payload_run(const struct payload *payload)
{
void (*doit)(void *) = entry;
void (*doit)(void *) = payload->entry;
void *cb_tables = cbmem_find(CBMEM_ID_CBTABLE);
printk(BIOS_SPEW, "entry = %p\n", entry);
printk(BIOS_SPEW, "entry = %p\n", payload->entry);
cache_sync_instructions();
doit(cb_tables);
}