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 <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 |
|
|
|
32e604 |
static struct __psx_context ctx = {sizeof(ctx),0,0,0,0,0,0,0,0,0,0,0,0};
|
|
|
407aec |
|
|
|
42bda7 |
static int ntux_usrmain(void)
|
|
|
42bda7 |
{
|
|
|
42bda7 |
return 0;
|
|
|
42bda7 |
}
|
|
|
42bda7 |
|
|
|
407aec |
void ntux_entry_point(void)
|
|
|
407aec |
{
|
|
|
42bda7 |
ctx.usrmain = ntux_usrmain;
|
|
|
407aec |
ntux_entry_routine(__psx_init,&ctx;;
|
|
|
407aec |
}
|
|
|
407aec |
|
|
|
407aec |
#endif
|