Similar to commit (
d736b6eb451b, "xen/arm: mpu: Define Xen start address for
MPU systems"), one needs to add a build assertion to ensure that the page size
is 4KB on arm32 based systems as well.
The existing build assertion is moved under "xen/arch/arm/mpu" as it applies
for both arm64 and arm32 based systems.
Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com>
Acked-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
obj-$(CONFIG_ARM_32) += arm32/
obj-$(CONFIG_ARM_64) += arm64/
obj-$(CONFIG_MMU) += mmu/
+obj-$(CONFIG_MPU) += mpu/
obj-$(CONFIG_ACPI) += acpi/
obj-$(CONFIG_HAS_PCI) += pci/
ifneq ($(CONFIG_NO_PLAT),y)
obj-y += head.o
-obj-y += mm.o
+++ /dev/null
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include <xen/lib.h>
-#include <xen/init.h>
-#include <xen/sizes.h>
-
-static void __init __maybe_unused build_assertions(void)
-{
- /*
- * Unlike MMU, MPU does not use pages for translation. However, we continue
- * to use PAGE_SIZE to denote 4KB. This is so that the existing memory
- * management based on pages, continue to work for now.
- */
- BUILD_BUG_ON(PAGE_SIZE != SZ_4K);
-}
--- /dev/null
+obj-y += mm.o
--- /dev/null
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <xen/lib.h>
+#include <xen/init.h>
+#include <xen/sizes.h>
+
+static void __init __maybe_unused build_assertions(void)
+{
+ /*
+ * Unlike MMU, MPU does not use pages for translation. However, we continue
+ * to use PAGE_SIZE to denote 4KB. This is so that the existing memory
+ * management based on pages, continue to work for now.
+ */
+ BUILD_BUG_ON(PAGE_SIZE != SZ_4K);
+}