From: Segher Boessenkool <segher@kernel.crashing.org>
To: "Nghiem, Tien" <TNghiem@oerlikon.ca>
Cc: linuxppc-dev@ozlabs.org,
"Marcin Dawidowicz" <marcin.dawidowicz@kontron.pl>,
"Garcia Jérémie" <GARCIAJ@3il.fr>
Subject: Re: RE : Error while accessing physical address
Date: Thu, 1 Sep 2005 18:00:51 +0200 [thread overview]
Message-ID: <dcb98a2d90571beeb4497d78ed9af7ba@kernel.crashing.org> (raw)
In-Reply-To: <A93DEE5BF142D6419D27C298B6F463D812CCF5@mail.oerlikon.ca>
> unsigned short is 2 bytes, so you should use:
>
> regHdwAddress = (unsigned short *) ioremap((unsigned
> short)address,0x2);
Nah. The size doesn't matter that much (it will be mapped
with a page granularity anyway). You just want to use
regHdwAddress = (unsigned short *)ioremap(address, 2);
Casting the address to unsigned short made the address 0x0400
instead of the address you wanted, so you destroy the ISI
vector when writing to it (and you might cause a cache paradox
as well, as the ioremap maps it uncacheable, and it might
already be in the cache at that time).
Segher
next prev parent reply other threads:[~2005-09-01 16:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-01 14:40 RE : Error while accessing physical address Nghiem, Tien
2005-09-01 16:00 ` Segher Boessenkool [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-09-01 14:20 Garcia Jérémie
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=dcb98a2d90571beeb4497d78ed9af7ba@kernel.crashing.org \
--to=segher@kernel.crashing.org \
--cc=GARCIAJ@3il.fr \
--cc=TNghiem@oerlikon.ca \
--cc=linuxppc-dev@ozlabs.org \
--cc=marcin.dawidowicz@kontron.pl \
/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).