On Thu, Apr 24, 2008 at 10:20:31PM +0800, Ja...@ht... wrote:
> Can someone explain the memory alias for me?
>
> And why the memory.c will do:
>
> /* not an alias, write the current address */
> * (u32 *)addr = addr;
When there's no address at that point (i.e.: memory is zero), we found
fresh memory. Otherwise, we must have seen it before and therefore it
was an alias (i.e.: same memory mapped on two different places). If it
is not an alias we write the current address at that address so we can
detect further on if we find this address again.
> CONFIDENTIALITY NOTE : The information in this e-mail is confidential
> and privileged; it is intended for use solely by the individual or
> entity named as the recipient hereof. Disclosure, copying,
> distribution, or use of the contents of this e-mail by persons other
> than the intended recipient is strictly prohibited and may violate
> applicable laws. If you have received this e-mail in error, please
> delete the original message and notify us by return email or collect
> call immediately. Thank you. HTC, Corporation
You do realise that this disclaimer doesn't allow you to post on
publically archived mailing lists, right? It's kind of silly to use
this kind of "confidentiality" notes on open source forums.
Erik
--
---- Erik Mouw --- www.bitwizard.nl --- +31 15 26 00 998 ----
---- Delftechpark 26, 2628XH Delft, The Netherlands --- KvK 27239233 ----
|