diff options
Diffstat (limited to 'src/arch/nt64/vtbl.c')
-rw-r--r-- | src/arch/nt64/vtbl.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/arch/nt64/vtbl.c b/src/arch/nt64/vtbl.c new file mode 100644 index 0000000..f21ce17 --- /dev/null +++ b/src/arch/nt64/vtbl.c @@ -0,0 +1,25 @@ +#include <unistd.h> +#include <stdint.h> +#include "psxglue.h" +#include "errno.h" + +const struct __ldso_vtbl * __ldso_vtbl = 0; +const struct __psx_vtbl * __psx_vtbl = 0; +unsigned long ** __syscall_vtbl = 0; +unsigned long __teb_sys_idx = 0; +unsigned long __teb_libc_idx = 0; + +long __syscall_alert(long n) +{ + char __lmsg[] = "DING ALARM! UNIMPLEMENTED SYSCALL 000\n"; + + __lmsg[36] = '0' + n % 10; n /= 10; + __lmsg[35] = '0' + n % 10; n /= 10; + __lmsg[34] = '0' + n % 10; + + __psx_vtbl->log_output( + __lmsg, + sizeof(__lmsg)); + + return -ENOSYS; +} |