Improved build system
Added new entries to .gitignore Moved away from source directory as central spot for all source code
This commit is contained in:
20
kernel/memory/PhysicalMemoryManager.h
Normal file
20
kernel/memory/PhysicalMemoryManager.h
Normal file
@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include <stddef.h>
|
||||
#include <CoreLib/Memory.h>
|
||||
|
||||
#include "../prekernel/bootstructure.h"
|
||||
#include "../terminal/kterm.h"
|
||||
#include "../bitmap.h"
|
||||
|
||||
#define BLOCK_SIZE 4092
|
||||
|
||||
|
||||
void SetupPhysicalMemoryManager(uint32_t mapAddress, uint32_t memorySize);
|
||||
|
||||
void* allocate_block();
|
||||
void free_block(void* ptr);
|
||||
|
||||
void allocate_region(uint32_t address, uint32_t size);
|
||||
void deallocate_region(uint32_t address, uint32_t size);
|
||||
|
||||
int GetUsedBlocks();
|
||||
Reference in New Issue
Block a user