Skip to contentSkip to conversation

arm: comment the use of second_linear_offset() in mm.c

PATCH In review Tim Deegan 2 participants 2 messages Feb 14, 2013 – Feb 15, 2013

lore
Share & tools
lore

Tim Deegan

author
#0 lore raw

PATCH 1/1 arm: comment the use of second_linear_offset() in mm.c

# HG changeset patch
# User Tim Deegan <[email protected]>
# Date 1360845361 0
# Node ID 4b01cc2c2c1f4836e7fb34a58bc13e125d67969e # Parent 6ad763d9f964859d045380baef43edf18399bdb0
arm: comment the use of second_linear_offset() in mm.c

xen/arch/arm/mm.c +3 -0
diff -r 6ad763d9f964 -r 4b01cc2c2c1f xen/arch/arm/mm.c
@@ -41,6 +41,9 @@ struct domain *dom_xen, *dom_io, *dom_co
 
 /* Static start-of-day pagetables that we use before the allocators are up */
 lpae_t xen_pgtable[LPAE_ENTRIES] __attribute__((__aligned__(4096)));
+/* N.B. The second-level table is 4 contiguous pages long, and covers
+ * all addresses from 0 to 0xffffffff.  Offsets into it are calculated
+ * with second_linear_offset(), not second_table_offset(). */
 lpae_t xen_second[LPAE_ENTRIES*4] __attribute__((__aligned__(4096*4)));
 lpae_t xen_fixmap[LPAE_ENTRIES] __attribute__((__aligned__(4096)));
 static lpae_t xen_xenmap[LPAE_ENTRIES] __attribute__((__aligned__(4096)));
#1 lore raw
Quoted 8 lines · Tim Deegan

# HG changeset patch
# User Tim Deegan <[email protected]>
# Date 1360845361 0
# Node ID 4b01cc2c2c1f4836e7fb34a58bc13e125d67969e # Parent 6ad763d9f964859d045380baef43edf18399bdb0
arm: comment the use of second_linear_offset() in mm.c

Acked + applied, thanks.