summaryrefslogtreecommitdiff
path: root/kernel/sys.c
blob: 3748e2bc51c23b86dd33fb94e72cd258e868e9a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <errno.h>
#include <kernel/con.h>
#include <stdint.h>
#include <time.h>

extern uint32_t ticks;

int sys_puts(char *s) {
  return printk(s);
}

time_t sys_time(void) {
  return ticks / 100;
}

int sys_dummy(void) {
  return -ENOSYS;
}