hos/kernel/syscall.c

26 lines
439 B
C

// syscall.c
// Author: Josh Holtrop
// Date; 01/02/06
// Modified: 01/02/06
#include "syscall.h"
#include "display/kout.h"
#include "proc/proc.h"
void syscall(u32_t cur_task, int_stack_t *int_stack)
{
static u32_t times = 0;
process_t *proc = proc_get_struct(cur_task);
switch (int_stack->eax)
{
case 1:
times++;
kprintf("\033[sTimes Called: %d\033[u", times);
break;
case 2:
kprintf("%s", int_stack->ebx);
break;
}
}