From: Josef Angermeier <Josef.Angermeier@informatik.uni-erlangen.de>
To: linuxppc-embedded@ozlabs.org
Subject: MPC8xx Debugging: function call vs. no function call
Date: Tue, 23 May 2006 17:40:26 +0200 [thread overview]
Message-ID: <44732CEA.9030604@cs.fau.de> (raw)
Hello,
I am not yet pretty familiar with 8xx system programming, so maybe you
could give me some debugging hint. My C code which programs the the CPM
(USB) has to execute the following commands:
eieio();
usbregs->usb_uscom = 0x80 | 0;
mb();
If i put those instructions in an new function, the CPM behaves as
wished, elsewise it depends on the remaining code. E.g. the number of
NOP machine code instructions before make a difference:
1.)
...< remaining C function code>
__asm__("nop\n\t");
eieio();
usbregs->usb_uscom = 0x80 | 0;
mb();
... <other code>
2.)
...< remaining C function code>
__asm__("nop\n\t");
__asm__("nop\n\t");
eieio();
usbregs->usb_uscom = 0x80 | 0;
mb();
... <other code>
Every hint howto find my mistake is appreciated! Thanks
Josef
reply other threads:[~2006-05-23 15:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=44732CEA.9030604@cs.fau.de \
--to=josef.angermeier@informatik.uni-erlangen.de \
--cc=linuxppc-embedded@ozlabs.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).