linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: David Ashley <dash@xdr.com>
To: linuxppc-embedded@lists.linuxppc.org
Subject: Re: signals from interrupt
Date: Sat, 29 Dec 2001 11:56:12 -0800	[thread overview]
Message-ID: <200112291956.fBTJuCD00235@dave.home> (raw)


>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/

             reply	other threads:[~2001-12-29 19:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-29 19:56 David Ashley [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-12-23  7:18 signals from interrupt Ofer Rashuk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200112291956.fBTJuCD00235@dave.home \
    --to=dash@xdr.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).