Merge branch 'signal-dev'
[lunaix-os.git] / lunaix-os / kernel / mm / dmm.c
index 44f0f9e897d2d176a65c260f38744fb3aa3a4c6a..651c6fce6c8852229e256e1dc0300b0a3c841ca2 100644 (file)
@@ -24,8 +24,6 @@
 #include <lunaix/spike.h>
 #include <lunaix/syscall.h>
 
 #include <lunaix/spike.h>
 #include <lunaix/syscall.h>
 
-extern void __kernel_heap_start;
-
 __DEFINE_LXSYSCALL1(int, sbrk, size_t, size)
 {
     heap_context_t* uheap = &__current->mm.u_heap;
 __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;
     mutex_init(&heap->lock);
 
     int perm = PG_ALLOW_USER;
-    if (heap->brk >= &__kernel_heap_start) {
+    if (heap->brk >= KHEAP_START) {
         perm = 0;
     }
 
         perm = 0;
     }