Skip to contentSkip to conversation

rtdm driver Problems

Xenomai-help Axel Beierlein 2 participants 3 messages Aug 27, 2007 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,

i try to port a standard serial Driver into an RTDM one following Jan´s example 16550A.c. When i try to initialize the rx/tx timeouts in my set_config routine with:

	if (testbits(config->config_mask, RTSER_SET_TIMEOUT_RX))
           ctx->config.rx_timeout = config->rx_timeout;

and call an rt_dev_open("sername",0) in my testapplikation i get an "floating point used in kernel ...." on my ppc. I use all the structures that Jan have defined.
Could it bee that the uint64_t var´s rx_timeout / tx_timeout are the reasons (especially the <unsigned long long int> typedef for an ppc)?

Axel

#1 lore raw
Quoted 11 lines · Axel Beierlein

Hello,

i try to port a standard serial Driver into an RTDM one following Jan´s example 16550A.c. When i try to initialize the rx/tx timeouts in my set_config routine with:

	if (testbits(config->config_mask, RTSER_SET_TIMEOUT_RX))
            ctx->config.rx_timeout = config->rx_timeout;

and call an rt_dev_open("sername",0) in my testapplikation i get an "floating point used in kernel ...." on my ppc. I use all the structures that Jan have defined.
Could it bee that the uint64_t var´s rx_timeout / tx_timeout are the reasons (especially the <unsigned long long int> typedef for an ppc)?

How do you compile the RTDM driver?

Wolfgang.

#3 lore raw
In reply to a message not in the archive
Quoted 14 lines · Axel Beierlein

Am 27.08.2007, 13:23 Uhr, schrieb Wolfgang Grandegger <[email protected]>:

Quoted 12 lines
Quoted 10 lines · Axel Beierlein

Hello,
i try to port a standard serial Driver into an RTDM one following
Jan´s example 16550A.c.
When i try to initialize the rx/tx timeouts in my set_config routine with:

     if (testbits(config->config_mask, RTSER_SET_TIMEOUT_RX))
            ctx->config.rx_timeout = config->rx_timeout;

and call an rt_dev_open("sername",0) in my testapplikation i get an
"floating point used in kernel ...." on my ppc.
I use all the structures that Jan have defined.
Could it bee that the uint64_t var´s rx_timeout / tx_timeout are the reasons (especially the <unsigned long long int> typedef for an ppc)?

Quoted 4 lines
Quoted 2 lines

How do you compile the RTDM driver?

ppc_6xx-gcc -Wall -O2 -c -DMODULE -D__KERNEL__ -D__IN_XENOMAI__ <the includes> testdrv.c -o testdrv.o

Please compile it properly either by including it into the kernel tree or as shown in "examples/rtdm".

Wolfgang.