xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Question about set up the HCTR at arm32/head.S.
@ 2013-03-27  8:42 Gihun Jung
  2013-03-28 10:07 ` [PATCH] " Tim Deegan
  0 siblings, 1 reply; 3+ messages in thread
From: Gihun Jung @ 2013-03-27  8:42 UTC (permalink / raw)
  To: xen-devel

Hi Developers!


When I read Xen ARM source code, I found some curious point to want to
ask about it.
At arm32/head.S, there are lines to set up the HCTR. According to
written comments and codes:

/* Set up the HTCR:
 * PT walks use Outer-Shareable accesses,
 * PT walks are write-back, no-write-allocate in both cache levels,
 * Full 32-bit address space goes through this table. */

 ldr   r0, =0x80002500
 mcr   CP32(r0, HTCR)

It described "PT walks are write-back, no-write-allocate in both cache
level": load 0x80002500 to r0.
At 4rd position of 0x800025000 (i.e. 5 = b0101), that is my question
point. According to armv7 architecture manual, that bits should be b11
respectively for both cache levels to enable "write-back,
no-write-allocate", but, in the code, it seems set up to "write-back,
write-allocate" for both cache levels. I am not sure which one is
correct: comment or code?


Best Regards,
Gihun Jung

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-11 13:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-27  8:42 Question about set up the HCTR at arm32/head.S Gihun Jung
2013-03-28 10:07 ` [PATCH] " Tim Deegan
2013-04-11 13:29   ` Ian Campbell

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).