diff options
Diffstat (limited to 'arch/riscv/include/vmap.h')
| -rw-r--r-- | arch/riscv/include/vmap.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/riscv/include/vmap.h b/arch/riscv/include/vmap.h new file mode 100644 index 0000000..3dac3a1 --- /dev/null +++ b/arch/riscv/include/vmap.h @@ -0,0 +1,19 @@ +#ifndef APOS_RISCV_VMAP_H +#define APOS_RISCV_VMAP_H + +#include <apos/sizes.h> + +#define VM_V (1 << 1) +#define VM_R (1 << 2) +#define VM_W (1 << 3) +#define VM_X (1 << 4) +#define VM_U (1 << 5) +#define VM_G (1 << 6) +#define VM_A (1 << 7) +#define VM_D (1 << 8) +#define VM_AL 0xff + +#define VM_TOP (-1) +#define VM_KERN (VM_TOP - SZ_1G) + +#endif /* APOS_RISCV_VMAP_H */ |
