/kernel/trunk/arch/ia32/src/interrupt.c |
---|
27,7 → 27,6 |
*/ |
#include <arch/interrupt.h> |
#include <syscall/syscall.h> |
#include <print.h> |
#include <debug.h> |
#include <panic.h> |
111,14 → 110,10 |
} |
} |
void syscall(int n, void *st) |
void syscall(int n, void *stack) |
{ |
__native *stack = (__native *) st; |
if (stack[-2] < SYSCALL_END) |
syscall_table[stack[-2]](stack[-5], stack[-3], stack[-4]); |
else |
panic("Undefined syscall %d", stack[-2]); |
printf("cpu%d: syscall\n", CPU->id); |
thread_usleep(1000); |
} |
void tlb_shootdown_ipi(int n, void *stack) |