diff options
| author | Ada Christine <adachristine18@gmail.com> | 2021-04-23 01:12:23 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2021-04-23 01:12:23 +0000 |
| commit | b90e152c02aad225e83a3e6c1b80d1a0e396bb14 (patch) | |
| tree | 0eb899ca1213df0c677bf8721261d70c60ef68b4 /api/kernel/memory/range.h | |
| parent | 73c73b2a8c9c3a6332942a1146fd18d74616e5b2 (diff) | |
less repetition, more flexibility with paging macros
Diffstat (limited to 'api/kernel/memory/range.h')
| -rw-r--r-- | api/kernel/memory/range.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/api/kernel/memory/range.h b/api/kernel/memory/range.h new file mode 100644 index 0000000..6a68467 --- /dev/null +++ b/api/kernel/memory/range.h @@ -0,0 +1,21 @@ +#pragma once + +#include <stdint.h> +#include <stddef.h> + +typedef uintptr_t phys_addr_t; + +enum memory_range_type +{ + UNUSABLE_MEMORY, + RESERVED_MEMORY, + SYSTEM_MEMORY, + AVAILABLE_MEMORY, +}; + +struct memory_range +{ + enum memory_range_type type; + phys_addr_t base; + size_t size; +}; |
