blob: 5ab36ec390bae64a7c3d9741bb3252a2dfbb8d98 [file] [log] [blame]
Paul Burtone8530032014-06-14 00:00:10 +01001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2014 Imagination Technologies
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Paul Burtone8530032014-06-14 00:00:10 +010014 */
15
Paul Burtone8530032014-06-14 00:00:10 +010016#include <arch/stages.h>
Patrick Georgi3bc29992015-03-30 14:13:23 +020017#include <program_loading.h>
Paul Burtone8530032014-06-14 00:00:10 +010018
Aaron Durbinb3847e62015-03-20 15:55:08 -050019void arch_prog_run(struct prog *prog)
Paul Burtone8530032014-06-14 00:00:10 +010020{
Ionela Voinescu82efc762015-05-26 17:15:42 +010021 void *cb_tables = prog_entry_arg(prog);
22 void (*doit)(void *) = prog_entry(prog);
23
24 doit(cb_tables);
Aaron Durbinb3847e62015-03-20 15:55:08 -050025}