wasm-micro-runtime/core/shared/platform
tkernelcn 286ea35508
fixed(freertos): Fix crash when wasm app call pthread_exit(NULL) (#2970)
before the change, only support wasm app exit like:
```c
void *thread_routine(void *arg)
{
    printf("Enter thread\n");
    return NULL;
}
```
if call pthread_exit, it will crash:
```c
void *thread_routine(void *arg)
{
    printf("Enter thread\n");
    pthread_exit(NULL);
    return NULL;
}
```
This commit lets both upstairs work correctly, test pass on stm32f103 mcu.
2024-01-02 17:32:09 +08:00
..
alios Fix compilation errors on zephyr platform (#2777) 2023-11-16 18:39:41 +08:00
android Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
common fixed(freertos): Fix crash when wasm app call pthread_exit(NULL) (#2970) 2024-01-02 17:32:09 +08:00
cosmopolitan Abstract POSIX filesystem functions (#2585) 2023-10-19 19:19:39 +08:00
darwin Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
ego Make a workaround for EGO when fstat returns NOT_SUPPORT (#1970) 2023-02-21 11:11:27 +08:00
esp-idf Return error when shutdown() fails (#2801) 2023-11-24 21:03:59 +08:00
freebsd Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
include Return error when shutdown() fails (#2801) 2023-11-24 21:03:59 +08:00
linux Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
linux-sgx Return error when shutdown() fails (#2801) 2023-11-24 21:03:59 +08:00
nuttx Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
riot Fix compilation errors on zephyr platform (#2777) 2023-11-16 18:39:41 +08:00
rt-thread Fix compilation errors on zephyr platform (#2777) 2023-11-16 18:39:41 +08:00
vxworks Extend os_mmap to support map file from fd (#2763) 2023-11-16 08:28:54 +08:00
windows Return error when shutdown() fails (#2801) 2023-11-24 21:03:59 +08:00
zephyr Fix typos in zephyr platform struct descriptions (#2818) 2023-11-24 08:47:38 +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.