Added memory map/unmap functions.

This commit is contained in:
Бранимир Караџић
2024-12-31 08:24:43 -08:00
parent 1b0b2cc86a
commit c723ec4054
2 changed files with 96 additions and 3 deletions

View File

@@ -16,6 +16,9 @@
# define BX_DL_EXT "so"
#endif //
BX_ERROR_RESULT(kErrorMemoryMapFailed, BX_MAKEFOURCC('b', 'x', '8', '0') );
BX_ERROR_RESULT(kErrorMemoryUnmapFailed, BX_MAKEFOURCC('b', 'x', '8', '1') );
namespace bx
{
///
@@ -58,6 +61,15 @@ namespace bx
///
[[noreturn]] void exit(int32_t _exitCode);
///
void* memoryMap(void* _address, size_t _size, Error* _err);
///
void memoryUnmap(void* _address, size_t _size, Error* _err);
///
size_t memoryPageSize();
} // namespace bx
#include "inline/os.inl"