Remove unnecessary comments

This commit is contained in:
apio 2022-10-11 21:32:28 +02:00
parent d3ac590e24
commit 25ab31c7ce

View File

@ -8,18 +8,10 @@ void Syscall::entry(Context* context)
asm volatile("cli"); asm volatile("cli");
switch (context->rax) switch (context->rax)
{ {
case SYS_exit: // sys_exit case SYS_exit: sys_exit(context, (int)context->rdi); break;
sys_exit(context, (int)context->rdi); case SYS_yield: sys_yield(context); break;
break; case SYS_sleep: sys_sleep(context, context->rdi); break;
case SYS_yield: // sys_yield case SYS_write: sys_write(context, (int)context->rdi, context->rsi, (const char*)context->rdx); break;
sys_yield(context);
break;
case SYS_sleep: // sys_sleep
sys_sleep(context, context->rdi);
break;
case SYS_write: // sys_write
sys_write(context, (int)context->rdi, context->rsi, (const char*)context->rdx);
break;
case SYS_paint: sys_paint(context, context->rdi, context->rsi, context->rdx, context->r10, context->r8); 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_gettid: sys_gettid(context); break; case SYS_gettid: sys_gettid(context); break;