diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-06 18:14:04 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-06 18:14:04 +0300 |
| commit | 76517486919657ecadda9867125dc6730f29a5b7 (patch) | |
| tree | 02d975db2b911ec7b92c4b1be7c5a2510b418ae1 /arch/riscv64/include/uapi.h | |
| parent | 608f44306a6f0d5692f5c81bcbfe7a621ec254ba (diff) | |
| download | kmi-76517486919657ecadda9867125dc6730f29a5b7.tar.gz kmi-76517486919657ecadda9867125dc6730f29a5b7.zip | |
pretty massive virtual memory rewrite
+ The system is now a bit simpler and hopefully easier to understand, while also
extending the shared memory to be 1:N, where there is one owner who
may become a zombie while waiting for the N to die.
Diffstat (limited to 'arch/riscv64/include/uapi.h')
| -rw-r--r-- | arch/riscv64/include/uapi.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/arch/riscv64/include/uapi.h b/arch/riscv64/include/uapi.h new file mode 100644 index 0000000..a8c236b --- /dev/null +++ b/arch/riscv64/include/uapi.h @@ -0,0 +1,38 @@ +/* SPDX-License-Identifier: copyleft-next-0.3.1 */ +/* Copyright 2024, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + +#ifndef KMI_RISCV_UAPI_H +#define KMI_RISCV_UAPI_H + +/** + * @file uapi.h + * + * RISCV-specific stuff that should be visible to userspace, currently mainly + * VM_R/VM_W/VM_X flags. + */ + +/** Page is active. */ +#define VM_V (1 << 0) + +/** Page is readable. */ +#define VM_R (1 << 1) + +/** Page is writable. */ +#define VM_W (1 << 2) + +/** Page is executable. */ +#define VM_X (1 << 3) + +/** Page is user-accessible. */ +#define VM_U (1 << 4) + +/** Page is global. */ +#define VM_G (1 << 5) + +/** Page has been accessed. */ +#define VM_A (1 << 6) + +/** Page is dirty. */ +#define VM_D (1 << 7) + +#endif /* KMI_RISCV_UAPI_H */ |
