Remove original kalloc free-list memory allocator entirely for now

This commit is contained in:
Imbus 2025-09-06 02:40:05 +02:00
parent 90c63ab41e
commit 8316c9f6ae
4 changed files with 5 additions and 113 deletions

View file

@ -1,6 +1,7 @@
#include <assert.h>
#include <banner.h>
#include <buddy.h>
#include <config.h>
#include <kalloc.h>
#include <memory.h>
#include <panic.h>
#include <proc.h>
@ -8,6 +9,7 @@
#include <spinlock.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <uart.h>
/**
@ -39,7 +41,8 @@ void start() {
if (id == 0) {
/* Here we will do a bunch of initialization steps */
kalloc_init();
memory_sweep(heap_start, heap_end);
buddy_init(heap_start, heap_end);
spinlock_init(&sl);
for (int i = 0; i < banner_len; i++) uart_putc(banner[i]);
__sync_synchronize();