mm: implement heap with liballoc, might review later
This commit is contained in:
+4
-3
@@ -10,6 +10,7 @@
|
||||
#include "../include/fat.h"
|
||||
#include "../include/task.h"
|
||||
#include "../include/multiboot.h"
|
||||
#include "../include/liballoc.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -187,7 +188,7 @@ void kmain(unsigned int magic, unsigned int info)
|
||||
//heap_init();
|
||||
//printf("after heap_init\n");
|
||||
__asm__ __volatile__ ("sti");
|
||||
scheduler_init();
|
||||
//scheduler_init();
|
||||
printf("Kernel init sequence completed\n");
|
||||
|
||||
char yooo[256] = "heheh";
|
||||
@@ -204,8 +205,8 @@ void kmain(unsigned int magic, unsigned int info)
|
||||
char temp1[1024] = "rusya_krutoy";
|
||||
char temp2[1024] = "katya_tozhe_krutaya";
|
||||
|
||||
huy = alloc_page();//heap_alloc(1024);
|
||||
huy2 = alloc_page();//heap_alloc(1024);
|
||||
huy = malloc(64);//alloc_page();//heap_alloc(1024);
|
||||
huy2 = malloc(64);//alloc_page();//heap_alloc(1024);
|
||||
|
||||
memcpy(huy, temp1, sizeof(temp1));
|
||||
memcpy(huy2, temp2, sizeof(temp1));
|
||||
|
||||
Reference in New Issue
Block a user