diff options
Diffstat (limited to 'src/libtools')
| -rwxr-xr-x | src/libtools/auxval.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/libtools/auxval.c b/src/libtools/auxval.c index 82c6fd35..e1cc87b0 100755 --- a/src/libtools/auxval.c +++ b/src/libtools/auxval.c @@ -15,8 +15,8 @@ #include "box64context.h" #include "debug.h" -//#include "x64emu.h" -//#include "emu/x64emu_private.h" +#include "x64emu.h" +#include "emu/x64emu_private.h" #include "box64stack.h" #include "auxval.h" @@ -49,13 +49,13 @@ unsigned long real_getauxval(unsigned long type) return 0; } -//EXPORT unsigned long my_getauxval(x64emu_t* emu, unsigned long type) -//{ -// uintptr_t* p = emu->context->auxval_start; -// while(*p) { -// if(*p == type) -// return p[1]; -// p+=2; -// } -// return 0; -//} +EXPORT unsigned long my_getauxval(x64emu_t* emu, unsigned long type) +{ + uintptr_t* p = emu->context->auxval_start; + while(*p) { + if(*p == type) + return p[1]; + p+=2; + } + return 0; +} |