diff options
author | midipix <writeonce@midipix.org> | 2018-05-23 08:36:23 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-05-23 10:24:50 -0400 |
commit | 407aecafb7c25689638b4f4dd8e60b339b5738ca (patch) | |
tree | c1ae8713654f5b29124002b855fe1acd2a876f0c /src/init/ntux_init_static.c | |
parent | 5ec9b67e061e7bf839d6ae986354190d2e1e0037 (diff) | |
download | ntux-407aecafb7c25689638b4f4dd8e60b339b5738ca.tar.bz2 ntux-407aecafb7c25689638b4f4dd8e60b339b5738ca.tar.xz |
utility: support all three linking modes (ldso/vrfs/static).
Diffstat (limited to 'src/init/ntux_init_static.c')
-rw-r--r-- | src/init/ntux_init_static.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/init/ntux_init_static.c b/src/init/ntux_init_static.c new file mode 100644 index 0000000..8d7f8bb --- /dev/null +++ b/src/init/ntux_init_static.c @@ -0,0 +1,28 @@ +/***********************************************************/ +/* ntux: native translation und extension */ +/* Copyright (C) 2016--2018 Z. Gilboa */ +/* Released under GPLv2 and GPLv3; see COPYING.NTUX. */ +/***********************************************************/ + +#include <psxtypes/psxtypes.h> +#include <pemagine/pemagine.h> +#include <ntapi/ntapi.h> +#include <psxscl/psxglue.h> +#include <ntux/ntux.h> + +#ifdef NTUX_ALL_STATIC + +int __psx_init(int *,char ***,char ***,void *); + +int ntux_entry_routine( + int(*__psx_init_routine)(int *,char ***,char ***,void *), + struct __psx_context * ctx); + +static struct __psx_context ctx = {sizeof(ctx),0,0,0,0,0,0,0,0,0,0,0}; + +void ntux_entry_point(void) +{ + ntux_entry_routine(__psx_init,&ctx); +} + +#endif |