nuttx/sched
Gregory Nutt 67ec3d7926 Remove CONFIG_CAN_PASS_STRUCT
This commit resolves issue #620:

Remove CONFIG_CAN_PASS_STRUCTS #620

The configuration option CONFIG_CAN_PASS_STRUCTS was added many years ago to support an old version of the SDCC compiler. That compiler is currently used only with the Z80 and Z180 targets. The limitation of that old compiler was that it could not pass structures or unions as either inputs or outputs. For example:

    #ifdef CONFIG_CAN_PASS_STRUCTS
    struct mallinfo mallinfo(void);
    #else
    int      mallinfo(FAR struct mallinfo *info);
    #endif

And even leads to violation of a few POSIX interfaces like:

    #ifdef CONFIG_CAN_PASS_STRUCTS
    int  sigqueue(int pid, int signo, union sigval value);
    #else
    int  sigqueue(int pid, int signo, FAR void *sival_ptr);
    #endif

This breaks the 1st INVIOLABLES rule:

Strict POSIX compliance
-----------------------

  o Strict conformance to the portable standard OS interface as defined at
    OpenGroup.org.
  o A deeply embedded system requires some special support.  Special
    support must be minimized.
  o The portable interface must never be compromised only for the sake of
    expediency.
  o Expediency or even improved performance are not justifications for
   violation of the strict POSIX interface

Also, it appears that the current SDCC compilers have resolve this issue and so, perhaps, this is no longer a problem: z88dk/z88dk#1132

NOTE:  This commit cannot pass the PR checks because it depends on matching changes to the apps/ directory.
2020-04-11 21:19:47 +01:00
..
clock Make compare_timespec public so timer driver could reuse it 2020-02-15 07:17:07 -06:00
environ global change: repace sched_xfree() to kxmm_free() 2020-04-09 10:29:28 -06:00
errno Standardization of some function headers. 2018-03-13 09:52:27 -06:00
group global change: fix tools/checkpatch.sh warnnings 2020-04-09 10:29:28 -06:00
init global change: fix tools/checkpatch.sh warnnings 2020-04-09 10:29:28 -06:00
irq sched/: Fix some new coding standard issues. 2020-03-09 17:31:49 +01:00
module Adapt dlfcn/modlib to use the instruction memory allocator 2020-03-16 07:54:49 -06:00
mqueue global change: repace sched_xfree() to kxmm_free() 2020-04-09 10:29:28 -06:00
paging Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
pthread Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
sched sched/sched_setpriority.c: DEBUGVERIFY, not DEBUGASSERT. 2020-04-11 17:30:17 +01:00
semaphore Remove type casting to wdentry_t (sched/) 2020-04-07 06:23:15 -06:00
signal Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
task Check return from nxsem_wait_initialize() 2020-03-29 20:11:10 +01:00
timer Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
wdog global change: repace sched_xfree() to kxmm_free() 2020-04-09 10:29:28 -06:00
wqueue global change: repace sched_xfree() to kxmm_free() 2020-04-09 10:29:28 -06:00
.gitignore Revert "Don't generate .depend anymore" 2020-03-22 23:07:29 -05:00
Kconfig Introduce CONFIG_DEFAULT_TASK_STACKSIZE 2020-03-26 22:30:13 -05:00
Makefile Revert "Don't generate .depend anymore" 2020-03-22 23:07:29 -05:00