blob: e208fc9051a4df8e6f403634146630f6ef9fe4b1 [file] [log] [blame]
Stefan Reinauere8b08ba2013-05-24 15:09:36 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2013 Google Inc.
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.
Stefan Reinauere8b08ba2013-05-24 15:09:36 -070014 */
15
Gabe Blackc09cf0b2014-02-08 06:30:49 -080016#include <arch/cache.h>
Aaron Durbin04654a22015-03-17 11:43:44 -050017#include <program_loading.h>
Stefan Reinauer52db0b92012-12-07 17:15:04 -080018
Aaron Durbinb3847e62015-03-20 15:55:08 -050019void arch_prog_run(struct prog *prog)
Stefan Reinauer52db0b92012-12-07 17:15:04 -080020{
Aaron Durbin3948e532015-03-20 13:00:20 -050021 void (*doit)(void *);
Gabe Blackc09cf0b2014-02-08 06:30:49 -080022
Gabe Blackc09cf0b2014-02-08 06:30:49 -080023 cache_sync_instructions();
Aaron Durbin3948e532015-03-20 13:00:20 -050024
Aaron Durbinb3847e62015-03-20 15:55:08 -050025 doit = prog_entry(prog);
26 doit(prog_entry_arg(prog));
27}
Vladimir Serbinenkof0d39c42016-02-19 16:44:22 +010028
29int arch_supports_bounce_buffer(void)
30{
31 return 0;
32}