blob: 6c13761538635b31e65e30bfe3d85bfcd2d63c26 [file] [log] [blame]
Ronald G. Minnich98312442016-02-12 22:37:48 +00001/*
2 * This file is part of the coreboot project.
3 *
Ronald G. Minnich98312442016-02-12 22:37:48 +00004 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#include <program_loading.h>
15
16void arch_prog_run(struct prog *prog)
17{
18 void (*doit)(void *) = prog_entry(prog);
19
20 doit(prog_entry_arg(prog));
21}