blob: c09af0539a15e812beb27189c563bc0dc2562c4a [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.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
Patrick Georgib890a122015-03-26 15:17:45 +010017 * Foundation, Inc.
Paul Burtone8530032014-06-14 00:00:10 +010018 */
19
Paul Burtone8530032014-06-14 00:00:10 +010020#include <arch/stages.h>
Patrick Georgi3bc29992015-03-30 14:13:23 +020021#include <program_loading.h>
Paul Burtone8530032014-06-14 00:00:10 +010022
Aaron Durbinb3847e62015-03-20 15:55:08 -050023void arch_prog_run(struct prog *prog)
Paul Burtone8530032014-06-14 00:00:10 +010024{
Ionela Voinescu82efc762015-05-26 17:15:42 +010025 void *cb_tables = prog_entry_arg(prog);
26 void (*doit)(void *) = prog_entry(prog);
27
28 doit(cb_tables);
Aaron Durbinb3847e62015-03-20 15:55:08 -050029}