Moved memory type enum to memorymap.h
Deleted memorytype.h
This commit is contained in:
@@ -3,6 +3,13 @@
|
|||||||
#include "types/physaddr.h"
|
#include "types/physaddr.h"
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
enum memory_type_t
|
||||||
|
{
|
||||||
|
M_AVAILABLE = 1,
|
||||||
|
M_UNAVAILABLE = 1,
|
||||||
|
M_DEFECTIVE = 3
|
||||||
|
};
|
||||||
|
|
||||||
struct memory_region_t
|
struct memory_region_t
|
||||||
{
|
{
|
||||||
physaddr_t location;
|
physaddr_t location;
|
||||||
@@ -17,4 +24,4 @@ struct memory_map_t
|
|||||||
size_t capacity;
|
size_t capacity;
|
||||||
};
|
};
|
||||||
|
|
||||||
void insert_region(struct memory_map_t *map, physaddr_t location, size_t size, unsigned int type);
|
void insert_region(struct memory_map_t *map, physaddr_t location, size_t size, enum memory_type_t type);
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
enum memory_type
|
|
||||||
{
|
|
||||||
M_AVAILABLE = 1,
|
|
||||||
M_UNAVAILABLE = 1,
|
|
||||||
M_DEFECTIVE = 3
|
|
||||||
};
|
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
#include "pageallocator.h"
|
#include "pageallocator.h"
|
||||||
#include "types/memorytype.h"
|
|
||||||
#include "types/status.h"
|
#include "types/status.h"
|
||||||
|
|
||||||
physaddr_t reserve_page(struct page_stack_t *stack)
|
physaddr_t reserve_page(struct page_stack_t *stack)
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
#include "tty.h"
|
#include "tty.h"
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "module.h"
|
#include "module.h"
|
||||||
#include "types/memorytype.h"
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user