arm64: v8r: Enable AARCH64_IMAGE_HEADER by default

Enable AARCH64_IMAGE_HEADER by default and fix the relevant warning

Signed-off-by: Jaxson Han <jaxson.han@arm.com>
This commit is contained in:
Jaxson Han 2022-03-15 18:13:31 +08:00 committed by Maureen Helm
commit 7ea0591d30
2 changed files with 2 additions and 2 deletions

View file

@ -80,7 +80,7 @@ config IPM_CONSOLE_STACK_SIZE
config AARCH64_IMAGE_HEADER
bool "Add image header"
default y if ARM_MMU
default y if ARM_MMU || ARM_MPU
help
This option enables standard ARM64 boot image header used by Linux
and understood by loaders such as u-boot on Xen xl tool.

View file

@ -8,7 +8,7 @@
#include <arch/cpu.h>
#include "mmu.h"
#if CONFIG_MMU_PAGE_SIZE == 4096
#if CONFIG_MMU_PAGE_SIZE == 4096 || defined(CONFIG_ARM_MPU)
#define HEADER_PGSIZE 1
#elif CONFIG_MMU_PAGE_SIZE == 16384
#define HEADER_PGSIZE 2