+
+int _syscall_sbrk(void* addr) {
+ heap_context_t* uheap = &__current->mm.u_heap;
+ mutex_lock(&uheap->lock);
+ int r = lxsbrk(uheap, addr);
+ mutex_unlock(&uheap->lock);
+ return r;
+}
+
+void* _syscall_brk(size_t size) {
+ heap_context_t* uheap = &__current->mm.u_heap;
+ mutex_lock(&uheap->lock);
+ void* r = lxbrk(uheap, size);
+ mutex_unlock(&uheap->lock);
+ return r;
+}
+