2020-04-02 23:48:34 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2015-01-09 14:14:20 +01:00
|
|
|
|
|
|
|
#include <program_loading.h>
|
|
|
|
|
|
|
|
/* For each segment of a program loaded this function is called*/
|
2016-03-31 20:49:00 +02:00
|
|
|
void prog_segment_loaded(uintptr_t start, size_t size, int flags)
|
|
|
|
{
|
|
|
|
platform_segment_loaded(start, size, flags);
|
|
|
|
arch_segment_loaded(start, size, flags);
|
|
|
|
}
|
|
|
|
|
2018-04-21 22:45:32 +02:00
|
|
|
void __weak platform_segment_loaded(uintptr_t start,
|
2016-03-31 20:49:00 +02:00
|
|
|
size_t size, int flags)
|
|
|
|
{
|
|
|
|
/* do nothing */
|
|
|
|
}
|
|
|
|
|
2018-04-21 22:45:32 +02:00
|
|
|
void __weak arch_segment_loaded(uintptr_t start, size_t size,
|
2015-03-20 15:42:05 +01:00
|
|
|
int flags)
|
2015-01-09 14:14:20 +01:00
|
|
|
{
|
|
|
|
/* do nothing */
|
|
|
|
}
|
2015-03-20 21:55:08 +01:00
|
|
|
|
|
|
|
void prog_run(struct prog *prog)
|
|
|
|
{
|
|
|
|
platform_prog_run(prog);
|
|
|
|
arch_prog_run(prog);
|
|
|
|
}
|
|
|
|
|
2018-04-21 22:45:32 +02:00
|
|
|
void __weak platform_prog_run(struct prog *prog)
|
2015-03-20 21:55:08 +01:00
|
|
|
{
|
|
|
|
/* do nothing */
|
|
|
|
}
|