Can someone confirm for me that ARM L2 PTP entries are supposed to be
maximally aligned at the start of their allocation, and not that
they're supposed to merely have default alignment at the end of their
allocation?

Shouldn't actually affect anything, but I just noticed while randomly
looking to see if any callers of pool_init(9) actually make use of the
`ioff' and/or `flags' parameters.

ok?

Index: pmap.c
===================================================================
RCS file: /cvs/src/sys/arch/arm/arm/pmap.c,v
retrieving revision 1.30
diff -u -p pmap.c
--- pmap.c      4 Jan 2011 21:11:39 -0000       1.30
+++ pmap.c      25 Apr 2011 19:07:27 -0000
@@ -4023,7 +4023,7 @@ pmap_bootstrap(pd_entry_t *kernel_l1pt, vaddr_t vstart
        /*
         * Initialise the L2 descriptor table pool and cache
         */
-       pool_init(&pmap_l2ptp_pool, L2_TABLE_SIZE_REAL, 0, L2_TABLE_SIZE_REAL,
+       pool_init(&pmap_l2ptp_pool, L2_TABLE_SIZE_REAL, L2_TABLE_SIZE_REAL, 0,
            0, "l2ptppl", NULL);
        pool_set_ctordtor(&pmap_l2ptp_pool, pmap_l2ptp_ctor, NULL, NULL);

Reply via email to