]> xenbits.xensource.com Git - xen.git/commit
xen/arm: mm: Introduce DEFINE_PAGE_TABLE{,S} and use it
authorJulien Grall <julien.grall@arm.com>
Sun, 14 Apr 2019 19:59:28 +0000 (20:59 +0100)
committerJulien Grall <julien.grall@arm.com>
Thu, 6 Jun 2019 17:44:33 +0000 (18:44 +0100)
commitbb94262198f3770f17f46a529bb31866f78efca5
tree4947a9c1134adb82c1a4c8f82697477b38c92e0f
parent4bfb26e419b73c28a935cce14ac3a63be9f3c1ba
xen/arm: mm: Introduce DEFINE_PAGE_TABLE{,S} and use it

We have multiple static page-tables defined in arch/arm/mm.c. The
current way to define them is difficult to read and does not help when
making modification.

Two new helpers DEFINE_PAGE_TABLES (to define multiple page-tables) and
DEFINE_PAGE_TABLE (alias of DEFINE_PAGE_TABLES(..., 1)) are introduced
and now used to define static page-tables.

Note that DEFINE_PAGE_TABLES() alignment differs from what is currently
used for allocating page-tables. This is fine because page-tables are
only required to be aligned to a page-size.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mm.c