From: "Sauce.Cheng" <chmhou@sina•com>
To: linuxppc-dev@ozlabs•org
Subject: Re: PPC8247 booting error
Date: Thu, 7 May 2009 18:47:28 -0700 (PDT) [thread overview]
Message-ID: <23438722.post@talk.nabble.com> (raw)
In-Reply-To: <20090505162649.GA4473@ld0162-tx32.am.freescale.net>
thanks for Scott's following
> You need to pass your physical address (0xd0000000) to ioremap() to
> obtain a virtual address that you can dereference.
actually, i have done that like you said. pass my phy addr to a virtual
addr, but i suppose it is a kernel virtual addr. i wanna get data from phy
in my application of user space. i try it by copy_to_user transfer a kernel
virtual addr to a use virtual addr for using by user. but copy_to_user
failed...
i do it like this
ssize_t read(....,char *buf,....,....)
{
....
kernel_buf = (void *)ioremap(0xD0000000, 4096);
copy_to_user(buf, kernel_buf, 4096);
....
}
--
View this message in context: http://www.nabble.com/PPC8247-booting-error-tp23381214p23438722.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.
prev parent reply other threads:[~2009-05-08 1:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-05 5:23 PPC8247 booting error Sauce.Cheng
2009-05-05 16:26 ` Scott Wood
2009-05-08 1:47 ` Sauce.Cheng [this message]
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=23438722.post@talk.nabble.com \
--to=chmhou@sina$(echo .)com \
--cc=linuxppc-dev@ozlabs$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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