Hello,
maybe I have found a bug in NIL. In ch.h CH_PORT_SUPPORTS_RECURSIVE_LOCKS is defined TRUE only #if defined(port_get_lock_status) && defined(port_is_locked), but both port_get_lock_status and port_get_lock_status are always NOT defined, as there is no #include "chcore.h" (differently from RT, where the same is done in chport.h, and that includes chcore.h).
Ciao,
Davide
NIL 21.11.4 - CH_PORT_SUPPORTS_RECURSIVE_LOCKS? Topic is solved
- Giovanni
- Site Admin
- Posts: 14891
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: NIL 21.11.4 - CH_PORT_SUPPORTS_RECURSIVE_LOCKS?
Hi,
Which port are you referring to? some ports do not define those macros intentionally.
Giovanni
Which port are you referring to? some ports do not define those macros intentionally.
Giovanni
Re: NIL 21.11.4 - CH_PORT_SUPPORTS_RECURSIVE_LOCKS?
Hi,
the port is ARMv7-M. Both port_get_lock_status and port_is_locked are defined in chcore.h. But, since that file is not included in os/nil/include/ch.h, CH_PORT_SUPPORTS_RECURSIVE_LOCKS is always defined as FALSE.
the port is ARMv7-M. Both port_get_lock_status and port_is_locked are defined in chcore.h. But, since that file is not included in os/nil/include/ch.h, CH_PORT_SUPPORTS_RECURSIVE_LOCKS is always defined as FALSE.
- Giovanni
- Site Admin
- Posts: 14891
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: NIL 21.11.4 - CH_PORT_SUPPORTS_RECURSIVE_LOCKS?
Hi,m
Fixed in 21.11.x and 20.3.x. Trunk was not affected.
Giovanni
Fixed in 21.11.x and 20.3.x. Trunk was not affected.
Giovanni