From: Ivan Passos <ivan@cyclades.com>
Subject: Re: Bus arbitration on Alpha
Date: Fri, 26 Sep 1997 11:23:41 -0700 [thread overview]
Message-ID: <f0b5b30ab260754a14521862fbc7e164.axp-list@archive.invalid> (raw)
James R. Shipman wrote:
>
> Be careful about caching with memory mapped I/O. Many times reading
> or writing registers causes side effects (like clearing status bits).
> If you don't turn off caching (or turn on guarding) for these
> registers you can get hit by cache line fetches for nearby address'.
> ie) the program accesses 0x0100 and the cache fetches a line from
> 0x100 to 0x120 or such. If you have memory mapped registers in that
> range which do something when you read them you get burned. Same for
> writes.
>
> Power PC has a "guarding" attribute which tells the cache not to
> touch memory which you didn't specifically ask for. I don't know
> about alpha.
Ok, that's a possibility. I have two questions:
- When I declare a variable as volatile (which I do for all pointers
to hardware), shouldn't caching be disable for this piece of code?
- Does anybody there know about the Alpha specs in regards to the
caching issue Jim is talking about ?
Regards,
--
*******************************************************************
Cyclades Corporation Tel.: (510)770-9727 ext. 202
Ivan Passos E-mail : mailto:ivan@cyclades.com
Software Engineer WWW : http://www.cyclades.com
*******************************************************************
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-09-26 18:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-09-26 18:23 Ivan Passos [this message]
[not found] <342BFDAD.9F705899@cyclades.com>
1997-09-28 4:45 ` Bus arbitration on Alpha Richard Henderson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox