public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Anthony Tonizzo" <atonizzo@lycos.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] PowerPC hangs on memory read
Date: Fri, 18 Jun 2004 01:58:00 -0000	[thread overview]
Message-ID: <IANLJMHABNLHPKAA@mailcity.com> (raw)


I am trying to read the CIS of a PCMCIA card. My development
system has a PowerPC860 and I am working with a 16 bit
PCMCIA peripheral. 

The code works perfectly when I run it in a standalone
application using the Metrowerks compiler with the Macraigor
Wiggler as hardware debugger. This allows me to verify that
the code is sound. Unfortunately, when run under Ecos, 
using GDB as the debugger, the same code hangs.

The inner loop that performs the reads looks like this:

   address = PCMCIA_ATTRIBUTE_ADDR + i;
   HAL_READ_UINT16( address, cis_content );

and the hangs happens during the HAL_READ_UINT16. I looked
at the assembler that is generated, and besides being more
verbose, the GNU code uses an LHZ instruction for the
read, while the Metrowerks uses an LHA, hardly a reason
to explain the inexplicable hangup.

Is there anyone that can suggest possible reasons?

Thanks
Tony


____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

             reply	other threads:[~2004-06-18  1:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-18  1:58 Anthony Tonizzo [this message]
2004-06-18  7:48 ` Andrew Lunn
2004-06-18 13:46 Anthony Tonizzo
2004-06-18 14:50 ` Nick Garnett
2004-06-18 15:05 Anthony Tonizzo
2004-06-18 15:30 ` Nick Garnett

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=IANLJMHABNLHPKAA@mailcity.com \
    --to=atonizzo@lycos.com \
    --cc=ecos-discuss@sources.redhat.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).