blob: d4096e2bedaff1c9d09f8b57c1ffd595b4fd6ca9 (
plain) (
blame)
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
26
27
28
|
#ifndef _JOVE_API_MEMORY_H
#define _JOVE_API_MEMORY_H 1
#include <stdbool.h>
#include <stdint.h>
#define JOVE_USERMEMORY_LIMIT 0x00007FFFFFFFFFFFULL
typedef uintptr_t virtaddr_t;
typedef uintptr_t physaddr_t;
typedef virtaddr_t virt_frame_t;
typedef physaddr_t phys_frame_t;
struct pagedir_mapping_flags
{
bool present;
bool writeable;
bool executable;
};
struct pagedir_mapping
{
phys_frame_t pfn;
struct pagedir_mapping_flags flags;
};
#endif
|