|
|
Xenomai 2.2 Notes
If you see this:
Xenomai: process memory not locked (missing mlockall?)
add
#include <sys/mman.h>
mlockall(MCL_CURRENT | MCL_FUTURE);
Other notes (may be applicable since Xenomai 2.1):
- rt_timer_start() and rt_timer_stop() are deprecated. The timer is started now automatically.
- real-time tasks always start in primary mode
- rt_dev_ioctl() is now switching to primary (RT) mode if we're in secondary mode, so we
don't need "ret = rt_task_set_mode(0, T_PRIMARY, NULL);" anymore. The only still existing exceptions
are (very rare!) services that are
provided for both contexts. E.g. in the 16550A driver: RTSER_RTIOC_SET_CONFIG
with RTSER_SET_TIMESTAMP_HISTORY set in the config mask must run in
non-RT context if the open call did so as well - consistent buffer
allocation from the same type of memory pool.
- rt_task_wait_period(&overrun); : this call requires primary mode anyway and will take care for a
switch back
// CONFIG_XENO_OPT_NATIVE_INTR=y otherwise it fails with ENOSYS (38)
err = rt_intr_create(&intr_desc, "parint", PARPORTINT, I_PROPAGATE);
Xenomai 2.1 Notes
error: too few arguments to function `rt_task_wait_period'
=>
unsigned long overr;
int ret = rt_task_wait_period(&overr);
// check overr for pending overruns
Last-Modified: Tue, 08 Aug 2006 06:17:27 GMT
|
|