From 565724db3b73ee67fa996dab511dc52df586cee1 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 17 Aug 2021 21:47:38 +0300 Subject: Garbage --- arch/riscv/include/vmap.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 arch/riscv/include/vmap.h (limited to 'arch/riscv/include/vmap.h') 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 + +#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 */ -- cgit v1.3