diff options
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 |