summaryrefslogtreecommitdiffhomepage
path: root/arch
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-22 09:49:07 -0400
committermidipix <writeonce@midipix.org>2016-06-22 09:49:07 -0400
commit5b39d1dceeb94c7622001caed536bf321d61036e (patch)
treeaead63c5a0075c8767fcde914f5c23930deed442 /arch
parent4df0787e8987ab789e70a57ce7e480dffec14b80 (diff)
downloadmmglue-5b39d1dceeb94c7622001caed536bf321d61036e.tar.bz2
mmglue-5b39d1dceeb94c7622001caed536bf321d61036e.tar.xz
__syscall_alert(): add missing 32-bit implementation.
Diffstat (limited to 'arch')
-rw-r--r--arch/nt32/src/vtbl.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/nt32/src/vtbl.c b/arch/nt32/src/vtbl.c
index 7e9c0e8..5336615 100644
--- a/arch/nt32/src/vtbl.c
+++ b/arch/nt32/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;
+}