mirror of
https://github.com/kenshineto/kern.git
synced 2025-04-21 04:42:25 +00:00
15 lines
234 B
C
15 lines
234 B
C
#include <comus/memory.h>
|
|
#include <comus/asm.h>
|
|
|
|
#include "paging.h"
|
|
#include "virtalloc.h"
|
|
#include "physalloc.h"
|
|
|
|
void memory_init(struct memory_map *map)
|
|
{
|
|
cli();
|
|
paging_init();
|
|
virtaddr_init();
|
|
physalloc_init(map);
|
|
sti();
|
|
}
|