soc/intel/skylake: Correct address of I2C5 Device
[coreboot.git] / src / lib / prog_ops.c
blobbc889fceae51fa6bb480f10884eab9e4f30efa69
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2014 Imagination Technologies
5 * Copyright 2015 Google Inc.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
17 #include <program_loading.h>
19 /* For each segment of a program loaded this function is called*/
20 void prog_segment_loaded(uintptr_t start, size_t size, int flags)
22 platform_segment_loaded(start, size, flags);
23 arch_segment_loaded(start, size, flags);
26 void __attribute__ ((weak)) platform_segment_loaded(uintptr_t start,
27 size_t size, int flags)
29 /* do nothing */
32 void __attribute__ ((weak)) arch_segment_loaded(uintptr_t start, size_t size,
33 int flags)
35 /* do nothing */
38 void prog_run(struct prog *prog)
40 platform_prog_run(prog);
41 arch_prog_run(prog);
44 void __attribute__ ((weak)) platform_prog_run(struct prog *prog)
46 /* do nothing */