Reorganise memory utilities

This commit is contained in:
2025-02-24 00:21:14 +00:00
parent 6119cf5c5f
commit 4520f2269d
17 changed files with 104 additions and 82 deletions

26
src/os/mem/mem_os_ops.h Normal file
View File

@@ -0,0 +1,26 @@
#ifndef MEM_OS_OPS_H
#define MEM_OS_OPS_H
#ifdef __cplusplus
BEGIN_C_LINKAGE
#endif // __cplusplus
typedef enum mem_access {
WAPP_MEM_ACCESS_NONE,
WAPP_MEM_ACCESS_READ_ONLY,
WAPP_MEM_ACCESS_EXEC_ONLY,
WAPP_MEM_ACCESS_READ_WRITE,
WAPP_MEM_ACCESS_READ_EXEC,
WAPP_MEM_ACCESS_READ_WRITE_EXEC,
} MemAccess;
typedef enum mem_init_type {
WAPP_MEM_INIT_UNINITIALISED,
WAPP_MEM_INIT_INITIALISED,
} MemInitType;
#ifdef __cplusplus
END_C_LINKAGE
#endif // __cplusplus
#endif // !MEM_OS_OPS_H