[USER] brk syscall
This commit is contained in:
10
libc/mem.c
Normal file
10
libc/mem.c
Normal 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,4 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#define SYS_WRITE 0x001
|
||||
#define SYS_BRK 0x002
|
||||
#define SYS_DEBUG 0x3FF
|
||||
|
||||
Reference in New Issue
Block a user