wangchdo commented on code in PR #17644:
URL: https://github.com/apache/nuttx/pull/17644#discussion_r2679526959


##########
sched/Kconfig:
##########
@@ -1547,6 +1547,53 @@ endmenu # RTOS hooks
 
 menu "Signal Configuration"
 
+choice
+       prompt "Signal support level"
+       default ENABLE_ALL_SIGNALS if !DEFAULT_SMALL
+       default ENABLE_PARTIAL_SIGNALS if DEFAULT_SMALL
+
+config ENABLE_ALL_SIGNALS
+       bool "Enable full signal support"
+       ---help---
+               Enable full POSIX signal support, including signal handling,
+               thread cancellation, timers, and process-related notifications.
+
+               This option provides the most complete signal functionality,
+               but increases code size and resource usage.
+
+               Typical use cases:
+                 - Applications relying on POSIX signals or timers
+                 - Systems where memory and CPU resources are sufficient
+
+config ENABLE_PARTIAL_SIGNALS
+       bool "Enable partial signal support"
+       ---help---
+               Disable process-related signal functionality while keeping
+               basic signal handling support.
+
+               This option provides a balance between reduced resource usage
+               and limited signal functionality.
+
+               Typical use cases:
+                 - Applications using basic signals without fork/exec
+                 - Resource-constrained real-time systems
+
+config DISABLE_ALL_SIGNALS

Review Comment:
   Done



##########
arch/risc-v/src/common/riscv_signal_dispatch.c:
##########
@@ -75,4 +75,4 @@ void up_signal_dispatch(_sa_sigaction_t sighand, int signo,
             (uintptr_t)info, (uintptr_t)ucontext);
 }
 
-#endif /* !CONFIG_BUILD_FLAT && __KERNEL__ */

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to