[USER] brk syscall

This commit is contained in:
thomas committed 2017-03-27 23:09:09 +02:00
1 parent 19df873615
commit a2cba95346
8 files changed
+73 -7

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
#include "syscalls.h"
long kernel_syscall(int num, ...);
SYSCALL_DEF(brk)
{
SYSCALL_INIT(unsigned long, brk);
return kernel_syscall(SYS_BRK, brk);
}
+1
View File
@@ -1,4 +1,5 @@
#pragma once
#define SYS_WRITE 0x001
#define SYS_BRK 0x002
#define SYS_DEBUG 0x3FF