X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/2e21eb2f39dd80aa166216381d5d402be943686e..0067bc210e621ccda286092d081a7890d65e1c18:/lunaix-os/kernel/mm/dmm.c diff --git a/lunaix-os/kernel/mm/dmm.c b/lunaix-os/kernel/mm/dmm.c index dee5d28..b4b1d0d 100644 --- a/lunaix-os/kernel/mm/dmm.c +++ b/lunaix-os/kernel/mm/dmm.c @@ -20,9 +20,10 @@ #include #include +#include -int _syscall_sbrk(void* addr) { +__DEFINE_LXSYSCALL1(int, sbrk, void*, addr) { heap_context_t* uheap = &__current->mm.u_heap; mutex_lock(&uheap->lock); int r = lxsbrk(uheap, addr); @@ -30,7 +31,7 @@ int _syscall_sbrk(void* addr) { return r; } -void* _syscall_brk(size_t size) { +__DEFINE_LXSYSCALL1(void*, brk, size_t, size) { heap_context_t* uheap = &__current->mm.u_heap; mutex_lock(&uheap->lock); void* r = lxbrk(uheap, size);