blob: 00cd75850a095b2863807c56e89b0badb8bbd908 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <types.h>
#include <userspace.h>
#include <libk/stdio.h>
#include <libk/string.h>
void begin_userspace()
{
// read
__asm__ __volatile__ ("mov $0x0, %rax; syscall;");
// write
__asm__ __volatile__ ("mov $0x1, %rax; syscall;");
while(true) {
}
}
|