blob: 7091a3f8c2609a087b6459b6c7ad18dbfebb4fe4 (
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) {
}
}
|