summaryrefslogtreecommitdiffhomepage
path: root/arch/nt64/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-21 15:55:17 -0400
committermidipix <writeonce@midipix.org>2016-06-21 15:55:17 -0400
commit4df0787e8987ab789e70a57ce7e480dffec14b80 (patch)
treeb664054495179b6eed5592dee922b00564436493 /arch/nt64/src
parent2d8d618a3998933912e5dba9a1f814fc646ca30c (diff)
downloadmmglue-4df0787e8987ab789e70a57ce7e480dffec14b80.tar.bz2
mmglue-4df0787e8987ab789e70a57ce7e480dffec14b80.tar.xz
__syscall_alert(): initial implementation and integration.
Diffstat (limited to 'arch/nt64/src')
-rw-r--r--arch/nt64/src/vtbl.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/nt64/src/vtbl.c b/arch/nt64/src/vtbl.c
index 028f153..c89cf07 100644
--- a/arch/nt64/src/vtbl.c
+++ b/arch/nt64/src/vtbl.c
@@ -1,4 +1,5 @@
#include "psxglue.h"
+#include "errno.h"
unsigned long ** __syscall_vtbl = 0;
struct __ldso_vtbl * __ldso_vtbl = 0;
@@ -10,3 +11,17 @@ void ___chkstk_ms(void)
{
}
+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;
+}