aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/main.c
blob: 64077eb32c717e7767f142958d6182bf609f613c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <syscall.h>

void user_main()
{
    char hello[] = "> Successfully switched to usermode!\n";
    syscall_write(hello);

    while (1) {
        char ch = (char) syscall_readc();
        syscall_writec(ch);
    };
}