wasm-micro-runtime/core/shared/platform
Wenyong Huang b6adec373e
shared-platform: Remove dependency on shared-utils' bh_memory_remap_slow (#3153)
As an original design rule, the code in `core/shared/platform` should not
rely on the code in `core/share/utils`. In the current implementation,
platform layer calls function `bh_memory_remap_slow` in utils layer.

This PR adds inline function `os_mremap_slow` in platform_api_vmcore.h,
and lets os_remap call it if mremap fails. And remove bh_memutils.h/c as
as they are unused.

And resolve the compilation warning in wamrc:
```bash
core/shared/platform/common/posix/posix_memmap.c:255:16:
warning: implicit declaration of function ‘bh_memory_remap_slow’
  255 |         return bh_memory_remap_slow(old_addr, old_size, new_size);
```
2024-02-17 13:44:33 +08:00
..
alios Enhancements on wasm function execution time statistic (#2985) 2024-01-17 09:51:54 +08:00
android Allow using mmap for shared memory if hw bound check is disabled (#3029) 2024-01-16 22:15:55 +08:00
common shared-platform: Remove dependency on shared-utils' bh_memory_remap_slow (#3153) 2024-02-17 13:44:33 +08:00
cosmopolitan cosmopolitan: Update compiler and update platform_internal.h (#3079) 2024-01-24 16:04:48 +08:00
darwin Always allocate linear memory using mmap (#3052) 2024-02-02 22:17:44 +08:00
ego Make a workaround for EGO when fstat returns NOT_SUPPORT (#1970) 2023-02-21 11:11:27 +08:00
esp-idf Enhancements on wasm function execution time statistic (#2985) 2024-01-17 09:51:54 +08:00
freebsd Allow using mmap for shared memory if hw bound check is disabled (#3029) 2024-01-16 22:15:55 +08:00
include shared-platform: Remove dependency on shared-utils' bh_memory_remap_slow (#3153) 2024-02-17 13:44:33 +08:00
linux Allow using mmap for shared memory if hw bound check is disabled (#3029) 2024-01-16 22:15:55 +08:00
linux-sgx Always allocate linear memory using mmap (#3052) 2024-02-02 22:17:44 +08:00
nuttx Zero the memory mapped from os_mmap in NuttX (#3132) 2024-02-05 15:45:22 +08:00
riot Enhancements on wasm function execution time statistic (#2985) 2024-01-17 09:51:54 +08:00
rt-thread Enhancements on wasm function execution time statistic (#2985) 2024-01-17 09:51:54 +08:00
vxworks Allow using mmap for shared memory if hw bound check is disabled (#3029) 2024-01-16 22:15:55 +08:00
windows Always allocate linear memory using mmap (#3052) 2024-02-02 22:17:44 +08:00
zephyr Enhancements on wasm function execution time statistic (#2985) 2024-01-17 09:51:54 +08:00
README.md re-org platform APIs, simplify porting process (#201) 2020-03-16 16:43:57 +08:00

This folder contains the platform abstract layer for multiple platforms. To support a new platform, you can simply create a new folder here and implement all the APIs defined in include folder.

Refer to port_wamr.md for how to port WAMR to a target platform.