blob: 9aa0b58f016661cf8379c577bb4c28eefd8bb5d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* SPDX-License-Identifier: GPL-2.0-only */
#include <program_loading.h>
#include <types.h>
/* For each segment of a program loaded this function is called*/
void prog_segment_loaded(uintptr_t start, size_t size, int flags)
{
platform_segment_loaded(start, size, flags);
arch_segment_loaded(start, size, flags);
}
void __weak platform_segment_loaded(uintptr_t start,
size_t size, int flags)
{
/* do nothing */
}
void __weak arch_segment_loaded(uintptr_t start, size_t size,
int flags)
{
/* do nothing */
}
void prog_run(struct prog *prog)
{
platform_prog_run(prog);
arch_prog_run(prog);
}
void __weak platform_prog_run(struct prog *prog)
{
/* do nothing */
}
|