summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--arch/nt32/psxglue.h2
-rw-r--r--arch/nt64/psxglue.h2
-rw-r--r--src/arch/nt32/crt_glue.c2
-rw-r--r--src/arch/nt64/crt_glue.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/arch/nt32/psxglue.h b/arch/nt32/psxglue.h
index b882fbc..86214f5 100644
--- a/arch/nt32/psxglue.h
+++ b/arch/nt32/psxglue.h
@@ -37,7 +37,7 @@ struct __tlca_abi {
struct __psx_context {
int size;
int options;
- void * refaddr;
+ void * usrmain;
void * ldsoaddr;
const unsigned short * ctty;
void ** sys_vtbl;
diff --git a/arch/nt64/psxglue.h b/arch/nt64/psxglue.h
index b882fbc..86214f5 100644
--- a/arch/nt64/psxglue.h
+++ b/arch/nt64/psxglue.h
@@ -37,7 +37,7 @@ struct __tlca_abi {
struct __psx_context {
int size;
int options;
- void * refaddr;
+ void * usrmain;
void * ldsoaddr;
const unsigned short * ctty;
void ** sys_vtbl;
diff --git a/src/arch/nt32/crt_glue.c b/src/arch/nt32/crt_glue.c
index a28273e..eb5cc6a 100644
--- a/src/arch/nt32/crt_glue.c
+++ b/src/arch/nt32/crt_glue.c
@@ -65,7 +65,7 @@ void __libc_entry_routine(
/* ctx init */
ctx.size = sizeof(ctx);
ctx.options = options;
- ctx.refaddr = __main;
+ ctx.usrmain = __main;
ctx.ldsoaddr = _init;
ctx.ctty = __ctty;
ctx.pthread_create_fn = pthread_create;
diff --git a/src/arch/nt64/crt_glue.c b/src/arch/nt64/crt_glue.c
index a28273e..eb5cc6a 100644
--- a/src/arch/nt64/crt_glue.c
+++ b/src/arch/nt64/crt_glue.c
@@ -65,7 +65,7 @@ void __libc_entry_routine(
/* ctx init */
ctx.size = sizeof(ctx);
ctx.options = options;
- ctx.refaddr = __main;
+ ctx.usrmain = __main;
ctx.ldsoaddr = _init;
ctx.ctty = __ctty;
ctx.pthread_create_fn = pthread_create;