From: Paul Miller <pmiller9@users.sourceforge.net>
To: linuxppc-embedded@lists.linuxppc.org
Subject: 405EP peripheral memory access
Date: Wed, 29 Oct 2003 08:08:00 -0600 [thread overview]
Message-ID: <200310290808.00654.pmiller9@users.sourceforge.net> (raw)
Hi,
I am new to Linux embedded programming. I have experience programming
microcontrollers and DSPs without an operating system, so I have some
idea what I'm doing. Anyhow, I'm trying to use the peripheral memory
bus on my 405EP CerfCube from Intrinsyc. Does anyone have an example
that I can work from?
To setup the memory's timings, I need access to the DCR register. In
the PowerPC datasheet it says to use assembly instructions mtdcr and
mfdcr. I don't know much about assembly, but I found a kernel patch
that uses these functions. So, working off this patch, I tried making
a simple program to read these registers. When I run it, Linux reports
an "Illegal instruction" and doesn't let me access the register.
Does access to this bus need to be done in "kernel mode"? If so, where
can I find more information about writing a kernel driver? Ideally,
I'd like to just open a device file and read/write to the bus.
Thanks!
-Paul
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next reply other threads:[~2003-10-29 14:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-29 14:08 Paul Miller [this message]
2003-10-29 17:32 ` 405EP peripheral memory access Conn Clark
-- strict thread matches above, loose matches on Subject: below --
2003-10-29 14:31 Steven Blakeslee
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=200310290808.00654.pmiller9@users.sourceforge.net \
--to=pmiller9@users.sourceforge.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.