Skip to contentSkip to conversation

signals from interrupt

DISCUSSION David Ashley 1 participant 1 message Dec 29, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 16 lines

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.

Quoted 3 lines

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/