Wrote memory map in C, removed C++ code
This commit is contained in:
20
include/memorymap.h
Normal file
20
include/memorymap.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include "types/physaddr.h"
|
||||
#include <stddef.h>
|
||||
|
||||
struct memory_region_t
|
||||
{
|
||||
physaddr_t location;
|
||||
size_t size;
|
||||
unsigned int type;
|
||||
};
|
||||
|
||||
struct memory_map_t
|
||||
{
|
||||
struct memory_region_t *array;
|
||||
size_t size;
|
||||
size_t capacity;
|
||||
};
|
||||
|
||||
void insert_region(struct memory_map_t *map, physaddr_t location, size_t size, unsigned int type);
|
||||
Reference in New Issue
Block a user