summaryrefslogtreecommitdiff
path: root/kernel/syscalls.c
blob: bf875fd478723a2b2feed02f04a6481c7b76a3e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#define FOOLOS_MODULE_NAME "syscalls"
#include "lib/logger/log.h"

//
void syscall_outbyte(char c)
{
    PutConsoleChar(c,0b1111111111000000);
}

int example_syscall(int x,int y)
{
    log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"example syscall called with %d + %d",x,y);
    return x+y;

}

int example_syscall_2(int x,int y)
{
    log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"example syscall 2 called with %d - %d",x,y);
    return x-y;
}

//