summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.c
blob: a42dc441e4af3f7a6341f05afd5528ec7b2641f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <kernel/arch/generic.h>
#include <kernel/panic.h>

int syscall_handler(int a, int b, int c, int d) {
	// verify that the parameters get passed correctly
	if (a != 1) panic();
	if (b != 2) panic();
	if (c != 3) panic();
	if (d != 4) panic();

	log_const("in a syscall!");

	// used to check if the return value gets passed correctly
	return 0x4e;
}