1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <program_loading.h>
8 * Payload's entry point is an offset to the real entry point, not to OPD
9 * (Official Procedure Descriptor) for entry point.
11 void arch_prog_run(struct prog
*prog
)
17 :: "r"(prog_entry_arg(prog
)), "r"(prog_entry(prog
)) : "memory");
22 void arch_prog_run(struct prog
*prog
)
24 void (*doit
)(void *) = prog_entry(prog
);
26 doit(prog_entry_arg(prog
));