From: Wolfgang Denk Date: Wed, 29 Jan 2014 23:02:26 +0100 Subject: [U-Boot] [PATCH v2 2/9] arc: add cpu files In-Reply-To: References: <1391011745-22239-1-git-send-email-abrodkin@synopsys.com> <1391011745-22239-3-git-send-email-abrodkin@synopsys.com> <20140129200659.CCC92384E2B@gemini.denx.de> Message-ID: <20140129220226.D9691384E2B@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mischa, In message you wrote: > > > +void icache_enable(void) > > > +{ > > > + write_aux_reg(ARC_REG_IC_CTRL, read_aux_reg(ARC_REG_IC_CTRL) & > > > + ~IC_CTRL_CACHE_DISABLE); > > > +} > > > > > > I missed this in patch # 1 - why do you need these read_aux_reg() / > > write_aux_reg() macros? Why cannot you use standard I/O accessors instead? > > Auxiliary registers are not I/O registers. The ARC architecture has general purpose registers (like any processor core has), and another set of registers, the auxiliary registers. These require a specific assembly instruction to be accessed. Thanks for the explanation. And sorry for my ignorance - I don't know ARC at all... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de : 1. What is the possibility of this being added in the future? In the near future, the probability is close to zero. In the distant future, I'll be dead, and posterity can do whatever they like... :-) - lwall