Blame src/init/ntux_init_static.c
|
|
407aec |
/***********************************************************/
|
|
|
407aec |
/* ntux: native translation und extension */
|
|
|
407aec |
/* Copyright (C) 2016--2018 Z. Gilboa */
|
|
|
407aec |
/* Released under GPLv2 and GPLv3; see COPYING.NTUX. */
|
|
|
407aec |
/***********************************************************/
|
|
|
407aec |
|
|
|
407aec |
#include <psxtypes/psxtypes.h>
|
|
|
407aec |
#include <pemagine/pemagine.h>
|
|
|
407aec |
#include <ntapi/ntapi.h>
|
|
|
407aec |
#include <psxscl/psxglue.h>
|
|
|
407aec |
#include <ntux/ntux.h>
|
|
|
407aec |
|
|
|
407aec |
#ifdef NTUX_ALL_STATIC
|
|
|
407aec |
|
|
|
407aec |
int __psx_init(int *,char ***,char ***,void *);
|
|
|
407aec |
|
|
|
407aec |
int ntux_entry_routine(
|
|
|
407aec |
int(*__psx_init_routine)(int *,char ***,char ***,void *),
|
|
|
407aec |
struct __psx_context * ctx);
|
|
|
407aec |
|
|
|
407aec |
static struct __psx_context ctx = {sizeof(ctx),0,0,0,0,0,0,0,0,0,0,0};
|
|
|
407aec |
|
|
|
407aec |
void ntux_entry_point(void)
|
|
|
407aec |
{
|
|
|
407aec |
ntux_entry_routine(__psx_init,&ctx;;
|
|
|
407aec |
}
|
|
|
407aec |
|
|
|
407aec |
#endif
|