X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/d251b620d312e819923e55e223e0eb43b72a3bc6..7515e526342f6ee07cbe92f5a458f1c2c4a1fcaf:/lunaix-os/kernel/mm/dmm.c diff --git a/lunaix-os/kernel/mm/dmm.c b/lunaix-os/kernel/mm/dmm.c index 44f0f9e..651c6fc 100644 --- a/lunaix-os/kernel/mm/dmm.c +++ b/lunaix-os/kernel/mm/dmm.c @@ -24,8 +24,6 @@ #include #include -extern void __kernel_heap_start; - __DEFINE_LXSYSCALL1(int, sbrk, size_t, size) { heap_context_t* uheap = &__current->mm.u_heap; @@ -53,7 +51,7 @@ dmm_init(heap_context_t* heap) mutex_init(&heap->lock); int perm = PG_ALLOW_USER; - if (heap->brk >= &__kernel_heap_start) { + if (heap->brk >= KHEAP_START) { perm = 0; }