summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authorShell <[email protected]>2024-05-08 09:25:57 +0800
committerGitHub <[email protected]>2024-05-08 09:25:57 +0800
commit48bd0e49f2687708e0aca2f3791ccc295920c80a (patch)
tree0136f4ea386c9b837ec07b436356bea30a00e0f2 /libcpu
parent9ba6cec663428bad57204e2e3373b48c70efe61f (diff)
[ipc] support of lockless rt_completion (#8887)
* [ipc] lockless rt_completion implementation The new rt_completion implemented by lockless algorithm can improve timer resolution for up to ~12%, compare to sem IPC. Signed-off-by: Shell <[email protected]> * fixup: error * remove useless changes --------- Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/risc-v/rv64/cpuport.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libcpu/risc-v/rv64/cpuport.c b/libcpu/risc-v/rv64/cpuport.c
new file mode 100644
index 0000000000..cb222821b9
--- /dev/null
+++ b/libcpu/risc-v/rv64/cpuport.c
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2006-2024, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2024-04-26 Shell lockless rt_completion
+ */
+
+#include <rtthread.h>
+
+#undef rt_hw_isb
+rt_weak void rt_hw_isb(void)
+{
+ return ;
+}