From 6977cf91013724b8bf632cf4ad08f8dbb0392fb2 Mon Sep 17 00:00:00 2001 From: Shell Date: Wed, 8 May 2024 09:22:09 +0800 Subject: [src] add rt_hw_cpu_id() wrapper API (#8894) * [src] add rt_hw_cpu_id() wrapper API rt_hw_cpu_id() is an unsafe API which should not be used by most codes directly. It's error-prone because it must be used in proper context, otherwise it can lead to errors and unpredictable behavior. This patch adds a wrapper API for rt_hw_cpu_id() to address this risk. It includes the context-checking functionality and provides a safer alternative for obtaining CPU IDs, ensuring that it is used correctly within the appropriate context. Signed-off-by: Shell * fixup UMP * update API & comment * ci: cpp_check --------- Signed-off-by: Shell --- tools/ci/cpp_check.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/ci/cpp_check.py') diff --git a/tools/ci/cpp_check.py b/tools/ci/cpp_check.py index e7b2847c4a..5e7e100525 100644 --- a/tools/ci/cpp_check.py +++ b/tools/ci/cpp_check.py @@ -27,6 +27,7 @@ class CPPCheck: [ 'cppcheck', '-DRT_ASSERT(x)=', + '-DRTM_EXPORT(x)=', '-Drt_list_for_each_entry(a,b,c)=a=(void*)b;', '-I include', '-I thread/components/finsh', -- cgit v1.3.1