kernel/src/allocator/allocator.c
uint32_t expand(heap_t * heap) {
    if (vm2_allocate_page(kernell1PageTable,
                          heap->end,
                          false,
                          (struct PagePermission){.access = KernelRW, .executable = false},
                          NULL) == NULL) {
        // Pointer is NULL so error
        return 0;
    } else {
        // Pointer is non-bn
        heap->end += PAGE_SIZE;
        return 1;
    }
}
// these are left here to implement contraction / expansion
these are left here to implement contraction / expansion
these are left here to implement contraction / expansion
uint32_t expand(heap_t * heap) {
    if (vm2_allocate_page(kernell1PageTable,
                          heap->end,
                          false,
                          (struct PagePermission){.access = KernelRW, .executable = false},
                          NULL) == NULL) {
        return 0;
    } else {
        heap->end += PAGE_SIZE;
        return 1;
    }
}
uint32_t expand ( heap_t * heap ) { if ( vm2_allocate_page ( kernell1PageTable , heap -> end , false , ( struct PagePermission ) { . access = KernelRW , . executable = false } , NULL ) == NULL ) { return 0 ; } else { heap -> end += PAGE_SIZE ; return 1 ; } }
these are left here to implement contraction / expansion
these are left here to implement contraction / expansion
// Pointer is NULL so error // Pointer is non-bn