summaryrefslogtreecommitdiff
path: root/src/boot/mod_mem_map.h
blob: 16e565865bad1b9906972f0da7ddc0e6da5b6673 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef mod_mem_map
#define mod_mem_map

#include <stdint.h>
#include <stddef.h>

struct memory_map_entry_ {
  struct memory_map_entry_* next;
  size_t start;
  size_t end;
} memory_map_entry;

struct memory_map_ {
  struct memory_map_entry* unreserved;
  uint16_t unreserved_count;

  struct memory_map_entry* reserved;
  uint16_t reserved_count;
} memory_map;

extern struct memory_map* system_memory_map;

void populate_memory_map(void);

#endif