This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Problem about installing the eCOS interrupt handler
- To: HuangQiang <jameshq at liverpool dot ac dot uk>
- Subject: Re: [ECOS] Problem about installing the eCOS interrupt handler
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Wed, 03 Oct 2001 17:03:11 +0100
- Cc: eCos <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <KIEBICHBADHFCLGCKOPDEEOPCHAA.jameshq@liv.ac.uk>
HuangQiang wrote:
>
> Hi all:
> I am using ARME7T board at the moment. I have tried to install external
> INT0 in eCOS program but I encounter some strange problem so could anybody
> have a look of it for me? Thank you very much! Following are the source
> code:
Two potential problems: it could be cached, or it could be the compiler
optimizing the access away because you may not be using "volatile".
Try using the definitions in <cyg/hal/plf_io.h>. and make sure IOPCON is a
*volatile* pointer. I assume you're printing out its contents in a loop
somewhere - using insight to prod its value may not cause the value of
cpuval to change if the compiler detects that cpuval is not used.
(NB I don't know what IOPCON *does* on the e7t, but I assume you know what
you're doing in that respect).
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine