summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorYunjie Gu <[email protected]>2022-10-20 04:41:13 +0100
committerGitHub <[email protected]>2022-10-19 23:41:13 -0400
commit8fa9fde43a2e9cb978b52c0eb536fe2bafcc6e73 (patch)
tree467394dde2b65c1ab6274059a1c475e72eefdb1d /components
parent65baa8b697ab77e24c9d3f510e601893526e33e2 (diff)
[bsp][c28x] add support to not disable global interrupt in context-switch to enable zero-latency isr for critical interrupts.
Diffstat (limited to 'components')
-rw-r--r--components/finsh/finsh.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/components/finsh/finsh.h b/components/finsh/finsh.h
index a26b26fb7e..73c12b3c34 100644
--- a/components/finsh/finsh.h
+++ b/components/finsh/finsh.h
@@ -36,17 +36,21 @@ typedef long (*syscall_func)(void);
#pragma comment(linker, "/merge:FSymTab=mytext")
#elif defined(__TI_COMPILER_VERSION__)
+#ifdef __TMS320C28XX__
+#define RT_NOBLOCKED __attribute__((noblocked))
+#else
+#define RT_NOBLOCKED
+#endif
#define MSH_FUNCTION_EXPORT_CMD(name, cmd, desc) \
__TI_FINSH_EXPORT_FUNCTION(__fsym_##cmd); \
const char __fsym_##cmd##_name[] = #cmd; \
const char __fsym_##cmd##_desc[] = #desc; \
- const struct finsh_syscall __fsym_##cmd = \
+ RT_USED RT_NOBLOCKED const struct finsh_syscall __fsym_##cmd = \
{ \
__fsym_##cmd##_name, \
__fsym_##cmd##_desc, \
(syscall_func)&name \
};
-
#else
#define MSH_FUNCTION_EXPORT_CMD(name, cmd, desc) \
const char __fsym_##cmd##_name[] RT_SECTION(".rodata.name") = #cmd; \