Blame arch/nt64/src/vtbl.c

860627
#include "psxglue.h"
4df078
#include "errno.h"
860627
860627
unsigned long **	__syscall_vtbl	= 0;
860627
struct __ldso_vtbl *	__ldso_vtbl	= 0;
860627
struct __psx_vtbl *	__psx_vtbl	= 0;
860627
unsigned long		__teb_sys_idx	= 0;
860627
unsigned long		__teb_libc_idx	= 0;
860627
4df078
long __syscall_alert(long n)
4df078
{
4df078
	char __lmsg[] = "DING ALARM! UNIMPLEMENTED SYSCALL 000\n";
4df078
4df078
	__lmsg[36] = '0' + n % 10; n /= 10;
4df078
	__lmsg[35] = '0' + n % 10; n /= 10;
4df078
	__lmsg[34] = '0' + n % 10;
4df078
4df078
	__psx_vtbl->log_output(
4df078
		__lmsg,
4df078
		sizeof(__lmsg));
4df078
4df078
	return -ENOSYS;
4df078
}