#include <oskit/exec/exec.h>
exec_format_t format; /* Executable file format */ oskit_addr_t entry; /* Entrypoint address */ oskit_addr_t init_dp; /* Initial data pointer */}; typedef struct exec_info exec_info_t;
Each of the executable interpreter functions described below fills in a caller-provided structure of this type after successfully loading an executable. This structure contains miscellaneous information about the executable: in particular, information needed to actually start the program running.
- format
- The file format in which the executable was expressed.
- entry
- The entrypoint address of the executable, which is where it should start running.
- init_dp
- This value is only relevant on some architectures (and in particular not the x86); it is a secondary address, typically loaded into another processor register when the program is started and used as a ``data pointer'' for accessing global data.