diff --git a/components/lwp/SConscript b/components/lwp/SConscript index 661a02e1f2e041ea4b964add1ca68cb4accfdf9c..b77df25870b5a8a412037892a2dad92774417233 100644 --- a/components/lwp/SConscript +++ b/components/lwp/SConscript @@ -19,7 +19,7 @@ if arch == 'risc-v': cpu = 'rv64' if GetDepend('LWP_UNIX98_PTY'): - print("LWP_UNIX98_PTY") + # print("LWP_UNIX98_PTY") src += Glob('unix98pty/*.c') CPPPATH += ['unix98pty/'] diff --git a/include/libc/libc_errno.h b/include/libc/libc_errno.h index 37f1ed44609d0dd4be609950d71a0087aafd05bf..d34a143faede30970bf6f352928ef08966f9a877 100644 --- a/include/libc/libc_errno.h +++ b/include/libc/libc_errno.h @@ -13,7 +13,7 @@ #include -#if defined(RT_USING_NEWLIB) || defined(_WIN32) || defined(__ARMCC_GNUC__) +#if defined(RT_USING_NEWLIB) || defined(RT_USING_MUSL) || defined(_WIN32) || defined(__ARMCC_GNUC__) /* use errno.h file in toolchains */ #include #endif @@ -45,7 +45,7 @@ defined in armcc/errno.h #define ERROR_BASE_NO 0 #endif -#if !defined(RT_USING_NEWLIB) && !defined(_WIN32) && !defined(__ARMCC_GNUC__) +#if !defined(RT_USING_NEWLIB) && !defined(RT_USING_MUSL) && !defined(_WIN32) && !defined(__ARMCC_GNUC__) #define EPERM (ERROR_BASE_NO + 1) #define ENOENT (ERROR_BASE_NO + 2) diff --git a/include/rtdef.h b/include/rtdef.h index 1e7f5167bab1e74f277c881d68c9eb6d14aea4b4..260bb45b7b5671a46b4df8cde1a488293cd9be39 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -775,6 +775,7 @@ typedef struct rt_thread *rt_thread_t; #define RT_IPC_CMD_UNKNOWN 0x00 /**< unknown IPC command */ #define RT_IPC_CMD_RESET 0x01 /**< reset IPC object */ +#define RT_IPC_CMD_GET_STATE 0x02 /**< get the state of IPC object */ #define RT_WAITING_FOREVER -1 /**< Block forever until get resource. */ #define RT_WAITING_NO 0 /**< Non-block. */ diff --git a/include/rthw.h b/include/rthw.h index f86618a5752b89c153a95c5291c1007047a9e263..6492bec2e90a93abf94af9eb672dac85be603aaf 100644 --- a/include/rthw.h +++ b/include/rthw.h @@ -151,6 +151,7 @@ void rt_hw_exception_install(rt_err_t (*exception_handle)(void *context)); void rt_hw_us_delay(rt_uint32_t us); #ifdef RT_USING_SMP +#include /* for spinlock from arch */ struct rt_spinlock {