Correct the syscall ABI

This commit is contained in:
apio 2022-10-02 17:01:46 +02:00
parent 6bacded5cf
commit 83d23ce8fe

View File

@ -19,7 +19,7 @@ void Syscall::entry(Context* context)
case SYS_write: // sys_write case SYS_write: // sys_write
sys_write(context, (const char*)context->rdi, context->rsi); sys_write(context, (const char*)context->rdi, context->rsi);
break; break;
case SYS_paint: sys_paint(context, context->rdi, context->rsi, context->r10, context->r8, context->r9); break; case SYS_paint: sys_paint(context, context->rdi, context->rsi, context->rdx, context->r10, context->r8); break;
case SYS_rand: sys_rand(context); break; case SYS_rand: sys_rand(context); break;
case SYS_version: sys_version(context, (char*)context->rdi, context->rsi); break; case SYS_version: sys_version(context, (char*)context->rdi, context->rsi); break;
case SYS_gettid: sys_gettid(context); break; case SYS_gettid: sys_gettid(context); break;