Remove original kalloc free-list memory allocator entirely for now
This commit is contained in:
parent
90c63ab41e
commit
8316c9f6ae
4 changed files with 5 additions and 113 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue