arch/arm/heap: add mmu.h fix not defined error when BUILD_KERNEL

fix PGTABLE_SIZE not defined in sama5d4-ek/knsh
Error: common/arm_allocateheap.c:177:11: error: 'PGTABLE_SIZE' undeclared (first use in this function); did you mean 'PGTABLE_L2_SIZE'?
  177 |   size -= PGTABLE_SIZE * CONFIG_SMP_NCPUS;
      |           ^~~~~~~~~~~~

Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
buxiasen 2025-04-25 22:24:05 +08:00 committed by Xiang Xiao
parent 05beacc799
commit 726683485f

View file

@ -39,6 +39,9 @@
#include "arm_internal.h"
#include "chip.h"
#ifdef CONFIG_BUILD_KERNEL
#include "mmu.h"
#endif
/****************************************************************************
* Pre-processor Definitions