From 42bda7697b5eda8f6b15509e2d86ad811f7af8fe Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 26 Jan 2019 18:29:46 -0500 Subject: struct __psx_context: update: .refaddr --> .usrmain. --- src/init/ntux_init_ldso.c | 7 ++++++- src/init/ntux_init_static.c | 6 ++++++ src/init/ntux_init_vrfs.c | 7 ++++++- 3 files changed, 18 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/init/ntux_init_ldso.c b/src/init/ntux_init_ldso.c index 992d6db..c80bead 100644 --- a/src/init/ntux_init_ldso.c +++ b/src/init/ntux_init_ldso.c @@ -41,6 +41,11 @@ int ntux_entry_routine( int(*__psx_init_routine)(int *,char ***,char ***,void *), struct __psx_context * ctx); +static int ntux_usrmain(void) +{ + return 0; +} + void ntux_entry_point(void) { int status; @@ -66,7 +71,7 @@ void ntux_entry_point(void) ctx.options = __PSXOPT_LDSO; ctx.ctty = __rrctty; - ctx.refaddr = ntux_entry_point; + ctx.usrmain = ntux_usrmain; ntux_entry_routine(__psx_init,&ctx); } diff --git a/src/init/ntux_init_static.c b/src/init/ntux_init_static.c index 8d7f8bb..64758fd 100644 --- a/src/init/ntux_init_static.c +++ b/src/init/ntux_init_static.c @@ -20,8 +20,14 @@ int ntux_entry_routine( static struct __psx_context ctx = {sizeof(ctx),0,0,0,0,0,0,0,0,0,0,0}; +static int ntux_usrmain(void) +{ + return 0; +} + void ntux_entry_point(void) { + ctx.usrmain = ntux_usrmain; ntux_entry_routine(__psx_init,&ctx); } diff --git a/src/init/ntux_init_vrfs.c b/src/init/ntux_init_vrfs.c index 708dd11..d4b3259 100644 --- a/src/init/ntux_init_vrfs.c +++ b/src/init/ntux_init_vrfs.c @@ -38,6 +38,11 @@ int ntux_entry_routine( int(*__psx_init_routine)(int *,char ***,char ***,void *), struct __psx_context * ctx); +static int ntux_usrmain(void) +{ + return 0; +} + void ntux_entry_point(void) { int status; @@ -63,7 +68,7 @@ void ntux_entry_point(void) ctx.options = __PSXOPT_VRFS; ctx.ctty = __sdctty; - ctx.refaddr = ntux_entry_point; + ctx.usrmain = ntux_usrmain; ntux_entry_routine(__psx_init,&ctx); } -- cgit v1.2.3