[USER] System calls

This commit is contained in:
thomas committed 2017-03-27 23:09:09 +02:00
1 parent 63b3c3f2c0
commit a7d2b24a79
9 files changed
+166 -2

No files matched your search

+4
View File
@@ -9,6 +9,8 @@
#include <string.h>
#include <cpu.h>
#include <elf.h>
#include <syscall.h>
#include <cpuid.h>
int kmain(uint64_t multiboot_magic, void *multiboot_data)
{
@@ -24,6 +26,8 @@ int kmain(uint64_t multiboot_magic, void *multiboot_data)
cpu_init();
pit_init();
debug_info("Syscall enabled:%d\n", CPUID_FEATURE_SYSCALL);
process_t *p1 = process_spawn(0);
thread_t *th = exec_elf(p1, mboot_data.init);
scheduler_insert(th);