* signals from interrupt
@ 2001-12-23 7:18 Ofer Rashuk
0 siblings, 0 replies; 2+ messages in thread
From: Ofer Rashuk @ 2001-12-23 7:18 UTC (permalink / raw)
To: Linuxppc-Embedded (E-mail)
I am running MontaVista hardhat 2.4.2. linux kernel on a MPC8240 cpu with
a pci bus,NVRAM device ,64M ram and 32M rom (flash).
basically my application is running very well i have created all the threads
i needed and all other initialization are almost done.
the last problem i have regards interrupts.
on my target i have a dual UART 16550 device, one of it's ports used by the
kernel (kprintf,etc...) the other port i need to use for my own application.
in order to use it i need to receive an interrupt (mean RX interrupt), now
since there are no interrupts available out side of the kernel i thought of
using signals.
what i wanted to do is to get the interrupt with in the kernel and to send a
signal to the application, the problem is that every method i tried to
implement that did not succeed, can any body help me dealing with this
issue.
thanks in advance.
Ofer Rashuk-Rosenthal.
mailto:oferr@radlan.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: signals from interrupt
@ 2001-12-29 19:56 David Ashley
0 siblings, 0 replies; 2+ messages in thread
From: David Ashley @ 2001-12-29 19:56 UTC (permalink / raw)
To: linuxppc-embedded
>I am running MontaVista hardhat 2.4.2. linux kernel on a MPC8240 cpu with
>a pci bus,NVRAM device ,64M ram and 32M rom (flash).
>basically my application is running very well i have created all the threads
>i needed and all other initialization are almost done.
>the last problem i have regards interrupts.
>on my target i have a dual UART 16550 device, one of it's ports used by the
>kernel (kprintf,etc...) the other port i need to use for my own application.
>in order to use it i need to receive an interrupt (mean RX interrupt), now
>since there are no interrupts available out side of the kernel i thought of
>using signals.
>what i wanted to do is to get the interrupt with in the kernel and to send a
>signal to the application, the problem is that every method i tried to
>implement that did not succeed, can any body help me dealing with this
>issue.
>
>thanks in advance.
>
>Ofer Rashuk-Rosenthal.
I would think this whole problem is not in the kernel realm. Your user space
program should open /dev/ttyS0 or whatever, then just do reads/writes on it.
You can test if data is available for reading using select(). You can
fork() off a child process that does nothing but select() in the file
descriptor for the /dev/ttyS0, and send a signal to the main process to
notify it of the fact.
-Dave
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-12-29 19:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-29 19:56 signals from interrupt David Ashley
-- strict thread matches above, loose matches on Subject: below --
2001-12-23 7:18 Ofer Rashuk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).