11f0079c5a
This also drops individual copyright notices, all mentioned authors in that part of the tree are listed in AUTHORS. Change-Id: Ib5a92bb46ff2b9d2928aae3763daec71747044c2 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39284 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
31 lines
730 B
C
31 lines
730 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* This file is part of the coreboot project. */
|
|
|
|
#include <commonlib/helpers.h>
|
|
#include <console/console.h>
|
|
#include <program_loading.h>
|
|
#include <ip_checksum.h>
|
|
#include <symbols.h>
|
|
|
|
int payload_arch_usable_ram_quirk(uint64_t start, uint64_t size)
|
|
{
|
|
if (start < 1 * MiB && (start + size) <= 1 * MiB) {
|
|
printk(BIOS_DEBUG,
|
|
"Payload being loaded at below 1MiB without region being marked as RAM usable.\n");
|
|
return 1;
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
void arch_prog_run(struct prog *prog)
|
|
{
|
|
#ifdef __x86_64__
|
|
void (*doit)(void *arg);
|
|
#else
|
|
/* Ensure the argument is pushed on the stack. */
|
|
asmlinkage void (*doit)(void *arg);
|
|
#endif
|
|
doit = prog_entry(prog);
|
|
doit(prog_entry_arg(prog));
|
|
}
|