mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
paging: Rename existing CONFIG_PAGING to CONFIG_LEGACY_PAGING
Current `CONFIG_PAGING` refers to an experimental implementation to enable embedded MCUs with some limited RAM space to execute large programs from some non-random access media. On-demand paging should be implemented for the kernel mode with address environment implementation enabled.
This commit is contained in:
committed by
Xiang Xiao
parent
264e8116b0
commit
ae9ef972c0
@@ -129,7 +129,7 @@ as there are some options hardcoded into
|
||||
opencd. By default, it assumes:
|
||||
|
||||
* ``CONFIG_DISABLE_MQUEUE=y``
|
||||
* ``CONFIG_PAGING=n``
|
||||
* ``CONFIG_LEGACY_PAGING=n``
|
||||
|
||||
If you need these options to be set differently, you will have to edit ``./src/rtos/nuttx_header.h`` from ``openocd``,
|
||||
change the corresponding settings and then rebuild it.
|
||||
|
||||
+7
-7
@@ -903,16 +903,16 @@ config ARCH_PGPOOL_SIZE
|
||||
endif # ARCH_PGPOOL_MAPPING
|
||||
endif # ARCH_ADDRENV && ARCH_NEED_ADDRENV_MAPPING
|
||||
|
||||
menuconfig PAGING
|
||||
bool "On-demand paging"
|
||||
menuconfig LEGACY_PAGING
|
||||
bool "Legacy On-demand paging"
|
||||
default n
|
||||
depends on ARCH_USE_MMU && !ARCH_ROMPGTABLE
|
||||
depends on EXPERIMENTAL && ARCH_USE_MMU && !ARCH_ROMPGTABLE
|
||||
---help---
|
||||
If set =y in your configation file, this setting will enable the on-demand
|
||||
paging feature as described in
|
||||
If set =y in your configation file, this setting will enable lazy loading
|
||||
backed up by the experimental on-demand paging feature as described in
|
||||
https://nuttx.apache.org/docs/latest/components/paging.html.
|
||||
|
||||
if PAGING
|
||||
if LEGACY_PAGING
|
||||
|
||||
config PAGING_PAGESIZE
|
||||
int "Page size (bytes)"
|
||||
@@ -1030,7 +1030,7 @@ config PAGING_TIMEOUT_TICKS
|
||||
number if microseconds, then a fatal error will be declared.
|
||||
Default: No timeouts monitored
|
||||
|
||||
endif # PAGING
|
||||
endif # LEGACY_PAGING
|
||||
|
||||
config ARCH_IRQPRIO
|
||||
bool "Prioritized interrupt support"
|
||||
|
||||
@@ -153,7 +153,7 @@ struct xcptcontext
|
||||
* address register (FAR) at the time of data abort exception.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
uintptr_t far;
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -273,7 +273,7 @@ struct xcptcontext
|
||||
* address register (FAR) at the time of data abort exception.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
uintptr_t far;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -272,7 +272,7 @@ struct xcptcontext
|
||||
* address register (FAR) at the time of data abort exception.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
uintptr_t far;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -272,7 +272,7 @@ struct xcptcontext
|
||||
* address register (FAR) at the time of data abort exception.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
uintptr_t far;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <stdint.h>
|
||||
#include <assert.h>
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
#endif
|
||||
|
||||
@@ -128,7 +128,7 @@ static inline void a1x_setupmappings(void)
|
||||
****************************************************************************/
|
||||
|
||||
#if !defined(CONFIG_ARCH_ROMPGTABLE) && defined(CONFIG_ARCH_LOWVECTORS) && \
|
||||
defined(CONFIG_PAGING)
|
||||
defined(CONFIG_LEGACY_PAGING)
|
||||
static void a1x_vectorpermissions(uint32_t mmuflags)
|
||||
{
|
||||
/* The PTE for the beginning of ISRAM is at the base of the L2 page table */
|
||||
@@ -226,7 +226,7 @@ static void a1x_copyvectorblock(void)
|
||||
* read only, then temporarily mark the mapping write-able (non-buffered).
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
a1x_vectorpermissions(MMU_L2_VECTRWFLAGS);
|
||||
#endif
|
||||
|
||||
@@ -250,7 +250,7 @@ static void a1x_copyvectorblock(void)
|
||||
|
||||
/* Make the vectors read-only, cacheable again */
|
||||
|
||||
#if !defined(CONFIG_ARCH_LOWVECTORS) && defined(CONFIG_PAGING)
|
||||
#if !defined(CONFIG_ARCH_LOWVECTORS) && defined(CONFIG_LEGACY_PAGING)
|
||||
a1x_vectorpermissions(MMU_L2_VECTORFLAGS);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -441,11 +441,11 @@
|
||||
|
||||
#else /* PGTABLE_BASE_PADDR || PGTABLE_BASE_VADDR */
|
||||
|
||||
/* If CONFIG_PAGING is selected, then parts of the 1-to-1 virtual memory
|
||||
* map probably do not apply because paging logic will probably partition
|
||||
* the SRAM section differently. In particular, if the page table is
|
||||
* located at the end of SRAM, then the virtual page table address defined
|
||||
* below will probably be in error.
|
||||
/* If CONFIG_LEGACY_PAGING is selected, then parts of the 1-to-1 virtual
|
||||
* memory map probably do not apply because paging logic will probably
|
||||
* partition the SRAM section differently. In particular, if the page
|
||||
* table is located at the end of SRAM, then the virtual page table address
|
||||
* defined below will probably be in error.
|
||||
* In that case PGTABLE_BASE_VADDR is defined in the file mmu.h
|
||||
*
|
||||
* We must declare the page table at the bottom or at the top of internal
|
||||
@@ -514,8 +514,8 @@
|
||||
*
|
||||
* 1) One mapping the vector table (only when CONFIG_ARCH_LOWVECTORS is not
|
||||
* defined).
|
||||
* 2) If on-demand paging is supported (CONFIG_PAGING=y), than an additional
|
||||
* L2 page table is needed.
|
||||
* 2) If on-demand paging is supported (CONFIG_LEGACY_PAGING=y), than an
|
||||
* additional L2 page table is needed.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_ARCH_LOWVECTORS
|
||||
@@ -546,7 +546,7 @@
|
||||
|
||||
/* Paging L2 page table base addresses
|
||||
*
|
||||
* NOTE: If CONFIG_PAGING is defined, mmu.h will re-assign the virtual
|
||||
* NOTE: If CONFIG_LEGACY_PAGING is defined, mmu.h will re-assign the virtual
|
||||
* address of the page table.
|
||||
*/
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/cache.h>
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
#endif
|
||||
|
||||
@@ -198,7 +198,7 @@ static inline void am335x_remap(void)
|
||||
****************************************************************************/
|
||||
|
||||
#if !defined(CONFIG_ARCH_ROMPGTABLE) && defined(CONFIG_ARCH_LOWVECTORS) && \
|
||||
defined(CONFIG_PAGING)
|
||||
defined(CONFIG_LEGACY_PAGING)
|
||||
static void am335x_vectorpermissions(uint32_t mmuflags)
|
||||
{
|
||||
/* The PTE for the beginning of OCMC0 RAM is at the base of the L2 page
|
||||
@@ -307,7 +307,7 @@ static void am335x_copyvectorblock(void)
|
||||
uint32_t *end;
|
||||
uint32_t *dest;
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
/* If we are using re-mapped vectors in an area that has been marked
|
||||
* read only, then temporarily mark the mapping write-able (non-buffered).
|
||||
*/
|
||||
@@ -334,7 +334,7 @@ static void am335x_copyvectorblock(void)
|
||||
*dest++ = *src++;
|
||||
}
|
||||
|
||||
#if !defined(CONFIG_ARCH_LOWVECTORS) && defined(CONFIG_PAGING)
|
||||
#if !defined(CONFIG_ARCH_LOWVECTORS) && defined(CONFIG_LEGACY_PAGING)
|
||||
/* Make the vectors read-only, cache-able again */
|
||||
|
||||
am335x_vectorpermissions(MMU_L2_VECTORFLAGS);
|
||||
|
||||
@@ -461,12 +461,12 @@
|
||||
|
||||
#else /* PGTABLE_BASE_PADDR || PGTABLE_BASE_VADDR */
|
||||
|
||||
/* If CONFIG_PAGING is selected, then parts of the 1-to-1 virtual memory
|
||||
* map probably do not apply because paging logic will probably partition
|
||||
* the SRAM section differently. In particular, if the page table is
|
||||
* located at the end of SRAM, then the virtual page table address defined
|
||||
* below will probably be in error. In that case PGTABLE_BASE_VADDR is
|
||||
* defined in the file mmu.h
|
||||
/* If CONFIG_LEGACY_PAGING is selected, then parts of the 1-to-1 virtual
|
||||
* memory map probably do not apply because paging logic will probably
|
||||
* partition the SRAM section differently. In particular, if the page
|
||||
* table is located at the end of SRAM, then the virtual page table address
|
||||
* defined below will probably be in error.
|
||||
* In that case PGTABLE_BASE_VADDR is defined in the file mmu.h
|
||||
*
|
||||
* We must declare the page table at the bottom or at the top of internal
|
||||
* SRAM. We pick the bottom of internal SRAM *unless* there are vectors
|
||||
@@ -547,7 +547,7 @@
|
||||
|
||||
/* Paging L2 page table base addresses
|
||||
*
|
||||
* NOTE: If CONFIG_PAGING is defined, mmu.h will re-assign the virtual
|
||||
* NOTE: If CONFIG_LEGACY_PAGING is defined, mmu.h will re-assign the virtual
|
||||
* address of the page table.
|
||||
*/
|
||||
|
||||
|
||||
@@ -32,6 +32,6 @@ CMN_CSRCS += arm_undefinedinsn.c
|
||||
CMN_ASRCS += arm_cache.S arm_vectors.S arm_vectortab.S
|
||||
CMN_ASRCS += arm_saveusercontext.S
|
||||
|
||||
ifeq ($(CONFIG_PAGING),y)
|
||||
ifeq ($(CONFIG_LEGACY_PAGING),y)
|
||||
CMN_CSRCS += arm_pginitialize.c arm_checkmapping.c arm_allocpage.c arm_va2pte.c
|
||||
endif
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
#include <nuttx/sched.h>
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
|
||||
#include <nuttx/page.h>
|
||||
|
||||
@@ -171,7 +171,7 @@ int up_allocpage(struct tcb_s *tcb, void **vpage)
|
||||
*/
|
||||
|
||||
pgndx = g_pgndx++;
|
||||
if (g_pgndx >= CONFIG_PAGING)
|
||||
if (g_pgndx >= CONFIG_LEGACY_PAGING)
|
||||
{
|
||||
g_pgndx = 0;
|
||||
g_pgwrap = true;
|
||||
@@ -225,4 +225,4 @@ int up_allocpage(struct tcb_s *tcb, void **vpage)
|
||||
return OK;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "arm_internal.h"
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@@ -106,4 +106,4 @@ bool up_checkmapping(struct tcb_s *tcb)
|
||||
return (*pte != 0);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "sched/sched.h"
|
||||
#include "arm_internal.h"
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
# include "arm.h"
|
||||
#endif
|
||||
@@ -49,8 +49,8 @@
|
||||
* Input Parameters:
|
||||
* regs - The standard, ARM register save array.
|
||||
*
|
||||
* If CONFIG_PAGING is selected in the NuttX configuration file, then these
|
||||
* additional input values are expected:
|
||||
* If CONFIG_LEGACY_PAGING is selected in the NuttX configuration file, then
|
||||
* these additional input values are expected:
|
||||
*
|
||||
* far - Fault address register. On a data abort, the ARM MMU places the
|
||||
* miss virtual address (MVA) into the FAR register. This is the address
|
||||
@@ -65,11 +65,11 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
void arm_dataabort(uint32_t *regs, uint32_t far, uint32_t fsr)
|
||||
{
|
||||
struct tcb_s *tcb = this_task();
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
uint32_t *savestate;
|
||||
|
||||
/* Save the saved processor context in CURRENT_REGS where it can be
|
||||
@@ -80,7 +80,7 @@ void arm_dataabort(uint32_t *regs, uint32_t far, uint32_t fsr)
|
||||
#endif
|
||||
CURRENT_REGS = regs;
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
/* In the NuttX on-demand paging implementation, only the read-only, .text
|
||||
* section is paged. However, the ARM compiler generated PC-relative data
|
||||
* fetches from within the .text sections. Also, it is customary to locate
|
||||
@@ -149,7 +149,7 @@ segfault:
|
||||
PANIC_WITH_REGS("panic", regs);
|
||||
}
|
||||
|
||||
#else /* CONFIG_PAGING */
|
||||
#else /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
void arm_dataabort(uint32_t *regs)
|
||||
{
|
||||
@@ -165,4 +165,4 @@ void arm_dataabort(uint32_t *regs)
|
||||
PANIC_WITH_REGS("panic", regs);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
+14
-14
@@ -28,7 +28,7 @@
|
||||
#include "chip.h"
|
||||
#include "arm_internal.h"
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
# include "pg_macros.h"
|
||||
#endif
|
||||
@@ -128,7 +128,7 @@
|
||||
* NPAGE1=(1024 -((a) & 0x00000fff) >> 2) NPAGE1=1-1024
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# define PG_L2_TEXT_PBASE (PG_L2_TEXT_PADDR & PG_L1_PADDRMASK)
|
||||
# define PG_L2_TEXT_NPAGE1 (PTE_NPAGES - ((PG_L2_TEXT_PADDR & ~PG_L1_PADDRMASK) >> 2))
|
||||
# define PG_L2_PGTABLE_PBASE (PG_L2_PGTABLE_PADDR & PG_L1_PADDRMASK)
|
||||
@@ -253,7 +253,7 @@ __start:
|
||||
str r3, [r4, r0, lsr #18] /* identity mapping */
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
|
||||
/* Map the read-only .text region in place. This must be done
|
||||
* before the MMU is enabled and the virtual addressing takes
|
||||
@@ -292,7 +292,7 @@ __start:
|
||||
ldmia r0, {r0, r1, r2, r3}
|
||||
pg_l2map r0, r1, r2, r3, r5
|
||||
|
||||
#else /* CONFIG_PAGING */
|
||||
#else /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
#ifdef CONFIG_IDENTITY_TEXTMAP
|
||||
mksection r0, r4 /* r0=phys. base section */
|
||||
@@ -317,7 +317,7 @@ __start:
|
||||
* can only be assumed to cover the initial .text region.
|
||||
*/
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
#endif /* CONFIG_ARCH_ROMPGTABLE */
|
||||
|
||||
/* The following logic will set up the ARM920/ARM926 for normal operation.
|
||||
@@ -443,7 +443,7 @@ __start:
|
||||
.long PGTABLE_BASE_VADDR /* Virtual start of page table */
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
|
||||
.Ltxtspan:
|
||||
.long PG_L1_TEXT_PADDR /* Physical address in the L1 table */
|
||||
@@ -471,7 +471,7 @@ __start:
|
||||
.long PG_PGTABLE_NPAGES /* Total mapped page table pages */
|
||||
.long MMU_L2_PGTABFLAGS /* L2 MMU flags to use */
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
.size __start, .-__start
|
||||
|
||||
/****************************************************************************
|
||||
@@ -501,7 +501,7 @@ __start:
|
||||
str r0, [r4, r3, lsr #18] /* Undo identity mapping */
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_PAGING)
|
||||
#if defined(CONFIG_LEGACY_PAGING)
|
||||
/* Populate the L1 table for the data region */
|
||||
|
||||
adr r0, .Ldataspan
|
||||
@@ -557,7 +557,7 @@ __start:
|
||||
* will still probably be located in a separate (virtual) address region.
|
||||
*/
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
#endif /* CONFIG_ARCH_ROMPGTABLE */
|
||||
|
||||
/* Zero BSS and set up the stack pointer */
|
||||
@@ -583,7 +583,7 @@ __start:
|
||||
* address region.
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_BOOT_RUNFROMFLASH) || defined(CONFIG_PAGING)
|
||||
#if defined(CONFIG_BOOT_RUNFROMFLASH) || defined(CONFIG_LEGACY_PAGING)
|
||||
adr r3, .Ldatainit
|
||||
ldmia r3, {r0, r1, r2}
|
||||
|
||||
@@ -622,14 +622,14 @@ __start:
|
||||
.long _ebss
|
||||
.long _ebss+CONFIG_IDLETHREAD_STACKSIZE
|
||||
|
||||
#if !defined(CONFIG_PAGING) && !defined(CONFIG_BOOT_RUNFROMFLASH)
|
||||
#if !defined(CONFIG_LEGACY_PAGING) && !defined(CONFIG_BOOT_RUNFROMFLASH)
|
||||
|
||||
.LCnuttxpaddr:
|
||||
.long NUTTX_START_PADDR & 0xfff00000
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
|
||||
.Ldataspan:
|
||||
.long PG_L1_DATA_VADDR /* Virtual address in the L1 table */
|
||||
@@ -644,9 +644,9 @@ __start:
|
||||
.long PG_DATA_NPAGES /* Number of pages in the data region */
|
||||
.long MMU_L2_DATAFLAGS /* L2 MMU flags to use */
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
#if defined(CONFIG_BOOT_RUNFROMFLASH) || defined(CONFIG_PAGING)
|
||||
#if defined(CONFIG_BOOT_RUNFROMFLASH) || defined(CONFIG_LEGACY_PAGING)
|
||||
.Ldatainit:
|
||||
.long _eronly /* Where .data defaults are stored in FLASH */
|
||||
.long _sdata /* Where .data needs to reside in SDRAM */
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
#include "arm_internal.h"
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@@ -77,4 +77,4 @@ void arm_pginitialize(void)
|
||||
*/
|
||||
}
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/irq.h>
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
#endif
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
void arm_prefetchabort(uint32_t *regs)
|
||||
{
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
uint32_t *savestate;
|
||||
|
||||
/* Save the saved processor context in CURRENT_REGS where it can be
|
||||
@@ -76,7 +76,7 @@ void arm_prefetchabort(uint32_t *regs)
|
||||
#endif
|
||||
CURRENT_REGS = regs;
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
/* Get the (virtual) address of instruction that caused the prefetch
|
||||
* abort. When the exception occurred, this address was provided in the
|
||||
* lr register and this value was saved in the context save area as the PC
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "pg_macros.h"
|
||||
#include "arm_internal.h"
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@@ -103,4 +103,4 @@ uint32_t *arm_va2pte(uintptr_t vaddr)
|
||||
return &L2[ndx];
|
||||
}
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
@@ -397,7 +397,7 @@ arm_vectordata:
|
||||
|
||||
mov fp, #0 /* Init frame pointer */
|
||||
mov r0, sp /* Get r0=xcp */
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
mrc p15, 0, r1, c6, c0, 0 /* Get R1=FAR */
|
||||
mrc p15, 0, r2, c5, c0, 0 /* Get r2=FSR */
|
||||
#endif
|
||||
|
||||
@@ -41,14 +41,14 @@
|
||||
|
||||
/* Configuration ************************************************************/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
|
||||
/* Sanity check -- we cannot be using a ROM page table and supporting on-
|
||||
* demand paging.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_ARCH_ROMPGTABLE
|
||||
# error "Cannot support both CONFIG_PAGING and CONFIG_ARCH_ROMPGTABLE"
|
||||
# error "Cannot support both CONFIG_LEGACY_PAGING and CONFIG_ARCH_ROMPGTABLE"
|
||||
#endif
|
||||
|
||||
/* Virtual Page Table Location **********************************************/
|
||||
@@ -342,7 +342,7 @@
|
||||
#define PG_POOL_PGPADDR(ndx) (PG_PAGED_PBASE + ((ndx) << PAGESHIFT))
|
||||
#define PG_POOL_PGVADDR(ndx) (PG_PAGED_VBASE + ((ndx) << PAGESHIFT))
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
/****************************************************************************
|
||||
* Assembly Macros
|
||||
@@ -355,8 +355,8 @@
|
||||
*
|
||||
* Description:
|
||||
* Write several, contiguous L2 page table entries. npages entries will be
|
||||
* written. This macro is used when CONFIG_PAGING is enable. This case,
|
||||
* it is used as follows:
|
||||
* written. This macro is used when CONFIG_LEGACY_PAGING is enable.
|
||||
* This case, it is used as follows:
|
||||
*
|
||||
* ldr r0, =PGTABLE_L2_BASE_PADDR <-- Address in L2 table
|
||||
* ldr r1, =PG_LOCKED_PBASE <-- Physical page memory address
|
||||
@@ -385,7 +385,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
.macro pg_l2map, l2, ppage, npages, mmuflags, tmp
|
||||
b 2f
|
||||
1:
|
||||
@@ -418,7 +418,7 @@
|
||||
cmp \npages, #0
|
||||
bgt 1b
|
||||
.endm
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: pg_l1span
|
||||
@@ -426,8 +426,8 @@
|
||||
* Description:
|
||||
* Write several, contiguous unmapped coarse L1 page table entries. As
|
||||
* many entries will be written as many as needed to span npages. This
|
||||
* macro is used when CONFIG_PAGING is enable. This case, it is used as
|
||||
* follows:
|
||||
* macro is used when CONFIG_LEGACY_PAGING is enable.
|
||||
* This case, it is used as follows:
|
||||
*
|
||||
* ldr r0, =PG_L1_PGTABLE_PADDR <-- Address in the L1 table
|
||||
* ldr r1, =PG_L2_PGTABLE_PADDR <-- Physical address of L2 page table
|
||||
@@ -461,7 +461,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
.macro pg_l1span, l1, l2, npages, ppage, mmuflags, tmp
|
||||
b 2f
|
||||
1:
|
||||
@@ -499,7 +499,7 @@
|
||||
bgt 1b
|
||||
.endm
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -60,7 +60,7 @@ if(CONFIG_ARMV7A_L2CC_PL310)
|
||||
list(APPEND SRCS arm_l2cc_pl310.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_PAGING)
|
||||
if(CONFIG_LEGACY_PAGING)
|
||||
list(
|
||||
APPEND
|
||||
SRCS
|
||||
|
||||
@@ -55,7 +55,7 @@ ifeq ($(CONFIG_ARMV7A_L2CC_PL310),y)
|
||||
CMN_CSRCS += arm_l2cc_pl310.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PAGING),y)
|
||||
ifeq ($(CONFIG_LEGACY_PAGING),y)
|
||||
CMN_CSRCS += arm_allocpage.c arm_checkmapping.c arm_pginitialize.c
|
||||
CMN_CSRCS += arm_va2pte.c
|
||||
CMN_ASRCS += arm_pghead.S
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
#include <nuttx/sched.h>
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
|
||||
#include <nuttx/page.h>
|
||||
|
||||
@@ -163,7 +163,7 @@ int arm_allocpage(struct tcb_s *tcb, void **vpage)
|
||||
*/
|
||||
|
||||
pgndx = g_pgndx++;
|
||||
if (g_pgndx >= CONFIG_PAGING)
|
||||
if (g_pgndx >= CONFIG_LEGACY_PAGING)
|
||||
{
|
||||
g_pgndx = 0;
|
||||
g_pgwrap = true;
|
||||
@@ -219,4 +219,4 @@ int arm_allocpage(struct tcb_s *tcb, void **vpage)
|
||||
return OK;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#include "arm_internal.h"
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
@@ -92,4 +92,4 @@ bool arm_checkmapping(struct tcb_s *tcb)
|
||||
return (*pte != 0);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "sched/sched.h"
|
||||
#include "arm_internal.h"
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
# include "arm.h"
|
||||
#endif
|
||||
@@ -48,8 +48,8 @@
|
||||
* Input Parameters:
|
||||
* regs - The standard, ARM register save array.
|
||||
*
|
||||
* If CONFIG_PAGING is selected in the NuttX configuration file, then these
|
||||
* additional input values are expected:
|
||||
* If CONFIG_LEGACY_PAGING is selected in the NuttX configuration file, then
|
||||
* these additional input values are expected:
|
||||
*
|
||||
* dfar - Fault address register. On a data abort, the ARM MMU places the
|
||||
* miss virtual address (MVA) into the DFAR register. This is the
|
||||
@@ -64,7 +64,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
uint32_t *arm_dataabort(uint32_t *regs, uint32_t dfar, uint32_t dfsr)
|
||||
{
|
||||
struct tcb_s *tcb = this_task();
|
||||
@@ -144,7 +144,7 @@ segfault:
|
||||
return regs; /* To keep the compiler happy */
|
||||
}
|
||||
|
||||
#else /* CONFIG_PAGING */
|
||||
#else /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
uint32_t *arm_dataabort(uint32_t *regs, uint32_t dfar, uint32_t dfsr)
|
||||
{
|
||||
@@ -162,4 +162,4 @@ uint32_t *arm_dataabort(uint32_t *regs, uint32_t dfar, uint32_t dfsr)
|
||||
return regs; /* To keep the compiler happy */
|
||||
}
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
#define IDLE_STACK_TOP (IDLE_STACK_BASE + CONFIG_IDLETHREAD_STACKSIZE)
|
||||
|
||||
#ifndef CONFIG_PAGING
|
||||
#ifndef CONFIG_LEGACY_PAGING
|
||||
|
||||
.file "arm_head.S"
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "chip.h"
|
||||
#include "arm_internal.h"
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
|
||||
.file "arm_pghead.S"
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
/* The page table cannot be in ROM if we are going to do pagin! */
|
||||
|
||||
#ifndef CONFIG_ARCH_ROMPGTABLE
|
||||
# error CONFIG_PAGING and CONFIG_ARCH_ROMPGTABLE are incompatible options
|
||||
# error CONFIG_LEGACY_PAGING and CONFIG_ARCH_ROMPGTABLE are incompatible options
|
||||
#endif
|
||||
|
||||
/* There are three operational memory configurations:
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
#include "arm_internal.h"
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
@@ -65,4 +65,4 @@ void arm_pginitialize(void)
|
||||
*/
|
||||
}
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/irq.h>
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
#endif
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
|
||||
uint32_t *arm_prefetchabort(uint32_t *regs, uint32_t ifar, uint32_t ifsr)
|
||||
{
|
||||
@@ -117,7 +117,7 @@ uint32_t *arm_prefetchabort(uint32_t *regs, uint32_t ifar, uint32_t ifsr)
|
||||
return regs;
|
||||
}
|
||||
|
||||
#else /* CONFIG_PAGING */
|
||||
#else /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
uint32_t *arm_prefetchabort(uint32_t *regs, uint32_t ifar, uint32_t ifsr)
|
||||
{
|
||||
@@ -135,4 +135,4 @@ uint32_t *arm_prefetchabort(uint32_t *regs, uint32_t ifar, uint32_t ifsr)
|
||||
return regs; /* To keep the compiler happy */
|
||||
}
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "chip.h"
|
||||
#include "arm_internal.h"
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
@@ -90,4 +90,4 @@ uint32_t *arm_va2pte(uintptr_t vaddr)
|
||||
return &L2[ndx];
|
||||
}
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
+12
-12
@@ -49,16 +49,16 @@
|
||||
|
||||
/* Configuration ************************************************************/
|
||||
|
||||
#if defined(CONFIG_PAGING) || defined(CONFIG_ARCH_ADDRENV)
|
||||
#if defined(CONFIG_LEGACY_PAGING) || defined(CONFIG_ARCH_ADDRENV)
|
||||
|
||||
/* Sanity check -- we cannot be using a ROM page table and supporting on-
|
||||
* demand paging.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_ARCH_ROMPGTABLE
|
||||
# error "Cannot support both CONFIG_PAGING/CONFIG_ARCH_ADDRENV and CONFIG_ARCH_ROMPGTABLE"
|
||||
# error "Cannot support both CONFIG_LEGACY_PAGING/CONFIG_ARCH_ADDRENV and CONFIG_ARCH_ROMPGTABLE"
|
||||
#endif
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
/* MMU CP15 Register Bit Definitions ****************************************/
|
||||
|
||||
@@ -654,7 +654,7 @@
|
||||
|
||||
/* Virtual Page Table Location **********************************************/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
/* Check if the virtual address of the page table has been defined. It
|
||||
* should not be defined: architecture specific logic should suppress
|
||||
* defining PGTABLE_BASE_VADDR unless: (1) it is defined in the NuttX
|
||||
@@ -894,7 +894,7 @@
|
||||
#define PG_POOL_PGPADDR(ndx) (PG_PAGED_PBASE + ((ndx) << PAGESHIFT))
|
||||
#define PG_POOL_PGVADDR(ndx) (PG_PAGED_VBASE + ((ndx) << PAGESHIFT))
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
@@ -1053,8 +1053,8 @@ struct page_mapping_s
|
||||
*
|
||||
* Description:
|
||||
* Write several, contiguous L2 page table entries. npages entries will be
|
||||
* written. This macro is used when CONFIG_PAGING is enable. This case,
|
||||
* it is used as follows:
|
||||
* written. This macro is used when CONFIG_LEGACY_PAGING is enable.
|
||||
* This case, it is used as follows:
|
||||
*
|
||||
* ldr r0, =PGTABLE_L2_BASE_PADDR <-- Address in L2 table
|
||||
* ldr r1, =PG_LOCKED_PBASE <-- Physical page memory address
|
||||
@@ -1083,7 +1083,7 @@ struct page_mapping_s
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
.macro pg_l2map, l2, ppage, npages, mmuflags, tmp
|
||||
b 2f
|
||||
1:
|
||||
@@ -1116,7 +1116,7 @@ struct page_mapping_s
|
||||
cmp \npages, #0
|
||||
bgt 1b
|
||||
.endm
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: pg_l1span
|
||||
@@ -1124,7 +1124,7 @@ struct page_mapping_s
|
||||
* Description:
|
||||
* Write several, contiguous, unmapped, small L1 page table entries.
|
||||
* As many entries will be written as many as needed to span npages.
|
||||
* This macro is used when CONFIG_PAGING is enable. In this case,
|
||||
* This macro is used when CONFIG_LEGACY_PAGING is enable. In this case,
|
||||
* it is used as follows:
|
||||
*
|
||||
* ldr r0, =PG_L1_PGTABLE_PADDR <-- Address in the L1 table
|
||||
@@ -1159,7 +1159,7 @@ struct page_mapping_s
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
.macro pg_l1span, l1, l2, npages, ppage, mmuflags, tmp
|
||||
b 2f
|
||||
1:
|
||||
@@ -1197,7 +1197,7 @@ struct page_mapping_s
|
||||
bgt 1b
|
||||
.endm
|
||||
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -404,12 +404,12 @@ int arm_securefault(int irq, void *context, void *arg);
|
||||
|
||||
/* Paging support */
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
void arm_pginitialize(void);
|
||||
uint32_t *arm_va2pte(uintptr_t vaddr);
|
||||
#else /* CONFIG_PAGING */
|
||||
#else /* CONFIG_LEGACY_PAGING */
|
||||
# define arm_pginitialize()
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
/* Exception Handlers */
|
||||
|
||||
@@ -424,14 +424,14 @@ uint32_t *arm_undefinedinsn(uint32_t *regs);
|
||||
|
||||
/* Paging support (and exception handlers) */
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
void arm_pginitialize(void);
|
||||
uint32_t *arm_va2pte(uintptr_t vaddr);
|
||||
void arm_dataabort(uint32_t *regs, uint32_t far, uint32_t fsr);
|
||||
#else /* CONFIG_PAGING */
|
||||
#else /* CONFIG_LEGACY_PAGING */
|
||||
# define arm_pginitialize()
|
||||
void arm_dataabort(uint32_t *regs);
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
/* Exception handlers */
|
||||
|
||||
|
||||
@@ -923,9 +923,9 @@
|
||||
* memory to address 0x0000:0000 using both the MMU and the AXI matrix
|
||||
* REMAP register. So no L2 page table is required.
|
||||
*
|
||||
* 2) If on-demand paging is supported (CONFIG_PAGING=y), than an additional
|
||||
* L2 page table is needed. This page table will use the remainder of
|
||||
* the address space.
|
||||
* 2) If on-demand paging is supported (CONFIG_LEGACY_PAGING=y), than an
|
||||
* additional L2 page table is needed. This page table will use the
|
||||
* remainder of the address space.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_ARCH_LOWVECTORS
|
||||
@@ -974,7 +974,7 @@
|
||||
|
||||
/* Paging L2 page table base addresses
|
||||
*
|
||||
* NOTE: If CONFIG_PAGING is defined, mmu.h will re-assign the virtual
|
||||
* NOTE: If CONFIG_LEGACY_PAGING is defined, mmu.h will re-assign the virtual
|
||||
* address of the page table.
|
||||
*/
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/cache.h>
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
#endif
|
||||
|
||||
@@ -111,7 +111,7 @@ static inline void imx_remap(void)
|
||||
****************************************************************************/
|
||||
|
||||
#if !defined(CONFIG_ARCH_ROMPGTABLE) && defined(CONFIG_ARCH_LOWVECTORS) && \
|
||||
defined(CONFIG_PAGING)
|
||||
defined(CONFIG_LEGACY_PAGING)
|
||||
static void imx_vectorpermissions(uint32_t mmuflags)
|
||||
{
|
||||
/* The PTE for the beginning of OCRAM is at the base of the L2 page table */
|
||||
@@ -215,7 +215,7 @@ static void imx_copyvectorblock(void)
|
||||
uint32_t *end;
|
||||
uint32_t *dest;
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
/* If we are using re-mapped vectors in an area that has been marked
|
||||
* read only, then temporarily mark the mapping write-able (non-buffered).
|
||||
*/
|
||||
@@ -241,7 +241,7 @@ static void imx_copyvectorblock(void)
|
||||
*dest++ = *src++;
|
||||
}
|
||||
|
||||
#if !defined(CONFIG_ARCH_LOWVECTORS) && defined(CONFIG_PAGING)
|
||||
#if !defined(CONFIG_ARCH_LOWVECTORS) && defined(CONFIG_LEGACY_PAGING)
|
||||
/* Make the vectors read-only, cacheable again */
|
||||
|
||||
imx_vectorpermissions(MMU_L2_VECTORFLAGS);
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#include "arm_internal.h"
|
||||
#include "lpc31_memorymap.h"
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
# include "pg_macros.h"
|
||||
#endif
|
||||
@@ -134,7 +134,7 @@
|
||||
* will let the heap run all the way to the end of SRAM.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# ifdef PGTABLE_IN_HIGHSRAM
|
||||
# define LPC31_HEAP_VEND (PG_LOCKED_VBASE + PG_TOTAL_VSIZE - PGTABLE_SIZE)
|
||||
# else
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "arm.h"
|
||||
#include "arm_internal.h"
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
# include "pg_macros.h"
|
||||
#endif
|
||||
@@ -71,7 +71,7 @@ static const struct section_mapping_s g_section_mapping[] =
|
||||
{
|
||||
{ LPC31_SHADOWSPACE_PSECTION, LPC31_SHADOWSPACE_VSECTION,
|
||||
LPC31_SHADOWSPACE_MMUFLAGS, LPC31_SHADOWSPACE_NSECTIONS},
|
||||
#ifndef CONFIG_PAGING /* SRAM is already fully mapped */
|
||||
#ifndef CONFIG_LEGACY_PAGING /* SRAM is already fully mapped */
|
||||
{ LPC31_INTSRAM_PSECTION, LPC31_INTSRAM_VSECTION,
|
||||
LPC31_INTSRAM_MMUFLAGS, LPC31_INTSRAM_NSECTIONS},
|
||||
#endif
|
||||
@@ -188,7 +188,7 @@ static void up_setupmappings(void)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if !defined(CONFIG_ARCH_ROMPGTABLE) && defined(CONFIG_ARCH_LOWVECTORS) && defined(CONFIG_PAGING)
|
||||
#if !defined(CONFIG_ARCH_ROMPGTABLE) && defined(CONFIG_ARCH_LOWVECTORS) && defined(CONFIG_LEGACY_PAGING)
|
||||
static void up_vectorpermissions(uint32_t mmuflags)
|
||||
{
|
||||
/* The PTE for the beginning of ISRAM is at the base of the L2 page table */
|
||||
@@ -281,7 +281,7 @@ static void up_copyvectorblock(void)
|
||||
*/
|
||||
|
||||
#if !defined(CONFIG_ARCH_ROMPGTABLE) && defined(CONFIG_ARCH_LOWVECTORS) && \
|
||||
defined(CONFIG_PAGING)
|
||||
defined(CONFIG_LEGACY_PAGING)
|
||||
up_vectorpermissions(MMU_L2_VECTRWFLAGS);
|
||||
#endif
|
||||
|
||||
@@ -306,7 +306,7 @@ static void up_copyvectorblock(void)
|
||||
|
||||
/* Make the vectors read-only, cacheable again */
|
||||
|
||||
#if !defined(CONFIG_ARCH_ROMPGTABLE) && defined(CONFIG_ARCH_LOWVECTORS) && defined(CONFIG_PAGING)
|
||||
#if !defined(CONFIG_ARCH_ROMPGTABLE) && defined(CONFIG_ARCH_LOWVECTORS) && defined(CONFIG_LEGACY_PAGING)
|
||||
up_vectorpermissions(MMU_L2_VECTROFLAGS);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -243,7 +243,7 @@
|
||||
#elif defined(CONFIG_BOOT_RUNFROMEXTSRAM)
|
||||
# define NUTTX_START_VADDR LPC31_EXTSRAM0_VADDR
|
||||
# define NUTTX_START_PADDR LPC31_EXTSRAM0_PADDR
|
||||
#else /* CONFIG_BOOT_RUNFROMISRAM, CONFIG_PAGING */
|
||||
#else /* CONFIG_BOOT_RUNFROMISRAM, CONFIG_LEGACY_PAGING */
|
||||
# define NUTTX_START_VADDR LPC31_INTSRAM0_VADDR
|
||||
# define NUTTX_START_PADDR LPC31_INTSRAM0_PADDR
|
||||
#endif
|
||||
@@ -277,18 +277,18 @@
|
||||
# error "CONFIG_ARCH_ROMPGTABLE defined; PGTABLE_BASE_P/VADDR not defined"
|
||||
# else
|
||||
|
||||
/* If CONFIG_PAGING is selected, then parts of the 1-to-1 virtual memory
|
||||
* map probably do not apply because paging logic will probably partition
|
||||
* the SRAM section differently. In particular, if the page table is located
|
||||
* at the end of SRAM, then the virtual page table address defined below
|
||||
* will probably be in error.
|
||||
/* If CONFIG_LEGACY_PAGING is selected, then parts of the 1-to-1 virtual
|
||||
* memory map probably do not apply because paging logic will probably
|
||||
* partition the SRAM section differently. In particular, if the page
|
||||
* table is located at the end of SRAM, then the virtual page table address
|
||||
* defined below will probably be in error.
|
||||
*
|
||||
* We work around this header file interdependency by (1) insisting that
|
||||
* pg_macros.h be included AFTER this header file, then (2) allowing the
|
||||
* pg_macros.h header file to redefine PGTABLE_BASE_VADDR.
|
||||
*/
|
||||
|
||||
# if defined(CONFIG_PAGING) && defined(__ARCH_ARM_SRC_ARM_PG_MACROS_H)
|
||||
# if defined(CONFIG_LEGACY_PAGING) && defined(__ARCH_ARM_SRC_ARM_PG_MACROS_H)
|
||||
# error "pg_macros.h must be included AFTER this header file"
|
||||
# endif
|
||||
|
||||
@@ -312,11 +312,11 @@
|
||||
# endif
|
||||
# define PGTABLE_IN_HIGHSRAM 1
|
||||
|
||||
/* If CONFIG_PAGING is defined, insist that pg_macros.h assign the virtual
|
||||
/* If CONFIG_LEGACY_PAGING is defined, insist that pg_macros.h assign the
|
||||
* address of the page table.
|
||||
*/
|
||||
|
||||
# ifdef CONFIG_PAGING
|
||||
# ifdef CONFIG_LEGACY_PAGING
|
||||
# undef PGTABLE_BASE_VADDR
|
||||
# endif
|
||||
# else
|
||||
@@ -341,8 +341,8 @@
|
||||
* (for normal operation). We will reuse this memory for coarse page tables
|
||||
* as follows:
|
||||
*
|
||||
* NOTE: If CONFIG_PAGING is defined, pg_macros.h will re-assign the virtual
|
||||
* address of the page table.
|
||||
* NOTE: If CONFIG_LEGACY_PAGING is defined, pg_macros.h will re-assign the
|
||||
* virtual address of the page table.
|
||||
*/
|
||||
|
||||
#define PGTABLE_L2_COARSE_OFFSET ((((LPC31_LAST_PSECTION >> 20) + 255) & ~255) << 2)
|
||||
|
||||
@@ -664,12 +664,12 @@
|
||||
# error "CONFIG_ARCH_ROMPGTABLE defined; PGTABLE_BASE_P/VADDR not defined"
|
||||
# endif
|
||||
|
||||
/* If CONFIG_PAGING is selected, then parts of the 1-to-1 virtual memory
|
||||
* map probably do not apply because paging logic will probably partition
|
||||
* the SRAM section differently. In particular, if the page table is located
|
||||
* at the end of SRAM, then the virtual page table address defined below
|
||||
* will probably be in error. In that case PGTABLE_BASE_VADDR is defined
|
||||
* in the file mmu.h
|
||||
/* If CONFIG_LEGACY_PAGING is selected, then parts of the 1-to-1 virtual
|
||||
* memory map probably do not apply because paging logic will probably
|
||||
* partition the SRAM section differently. In particular, if the page
|
||||
* table is located at the end of SRAM, then the virtual page table address
|
||||
* defined below will probably be in error. In that case PGTABLE_BASE_VADDR
|
||||
* is defined in the file mmu.h
|
||||
*
|
||||
* We must declare the page table at the bottom or at the top of internal
|
||||
* SRAM. We pick the bottom of internal SRAM *unless* there are vectors
|
||||
@@ -681,18 +681,18 @@
|
||||
/* In this case, page table must lie at the top 16Kb of ISRAM1 (or ISRAM0
|
||||
* if ISRAM1 is not available in this architecture)
|
||||
*
|
||||
* If CONFIG_PAGING is defined, then mmu.h assign the virtual address
|
||||
* of the page table.
|
||||
* If CONFIG_LEGACY_PAGING is defined, then mmu.h assign the virtual
|
||||
* address of the page table.
|
||||
*/
|
||||
|
||||
# if SAM_ISRAM1_SIZE > 0
|
||||
# define PGTABLE_BASE_PADDR (SAM_ISRAM1_PADDR+SAM_ISRAM1_SIZE-PGTABLE_SIZE)
|
||||
# ifndef CONFIG_PAGING
|
||||
# ifndef CONFIG_LEGACY_PAGING
|
||||
# define PGTABLE_BASE_VADDR (SAM_ISRAM1_VADDR+SAM_ISRAM1_SIZE-PGTABLE_SIZE)
|
||||
# endif
|
||||
# else
|
||||
# define PGTABLE_BASE_PADDR (SAM_ISRAM0_PADDR+SAM_ISRAM0_SIZE-PGTABLE_SIZE)
|
||||
# ifndef CONFIG_PAGING
|
||||
# ifndef CONFIG_LEGACY_PAGING
|
||||
# define PGTABLE_BASE_VADDR (SAM_ISRAM0_VADDR+SAM_ISRAM0_SIZE-PGTABLE_SIZE)
|
||||
# endif
|
||||
# endif
|
||||
@@ -721,7 +721,7 @@
|
||||
*/
|
||||
|
||||
# define PGTABLE_BASE_PADDR SAM_ISRAM0_PADDR
|
||||
# ifndef CONFIG_PAGING
|
||||
# ifndef CONFIG_LEGACY_PAGING
|
||||
# define PGTABLE_BASE_VADDR SAM_ISRAM0_VADDR
|
||||
# endif
|
||||
# define PGTABLE_IN_LOWSRAM 1
|
||||
@@ -803,9 +803,9 @@
|
||||
* memory to address 0x0000:0000 using both the MMU and the AXI matrix
|
||||
* REMAP register. So no L2 page table is required.
|
||||
*
|
||||
* 2) If on-demand paging is supported (CONFIG_PAGING=y), than an additional
|
||||
* L2 page table is needed. This page table will use the remainder of
|
||||
* the address space.
|
||||
* 2) If on-demand paging is supported (CONFIG_LEGACY_PAGING=y), than an
|
||||
* additional L2 page table is needed. This page table will use the
|
||||
* remainder of the address space.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_ARCH_LOWVECTORS
|
||||
@@ -838,7 +838,7 @@
|
||||
|
||||
/* Paging L2 page table base addresses
|
||||
*
|
||||
* NOTE: If CONFIG_PAGING is defined, mmu.h will re-assign the virtual
|
||||
* NOTE: If CONFIG_LEGACY_PAGING is defined, mmu.h will re-assign the virtual
|
||||
* address of the page table.
|
||||
*/
|
||||
|
||||
|
||||
@@ -572,12 +572,12 @@
|
||||
# error "CONFIG_ARCH_ROMPGTABLE defined; PGTABLE_BASE_P/VADDR not defined"
|
||||
# endif
|
||||
|
||||
/* If CONFIG_PAGING is selected, then parts of the 1-to-1 virtual memory
|
||||
* map probably do not apply because paging logic will probably partition
|
||||
* the SRAM section differently. In particular, if the page table is located
|
||||
* at the end of SRAM, then the virtual page table address defined below
|
||||
* will probably be in error. In that case PGTABLE_BASE_VADDR is defined
|
||||
* in the file mmu.h
|
||||
/* If CONFIG_LEGACY_PAGING is selected, then parts of the 1-to-1 virtual
|
||||
* memory map probably do not apply because paging logic will probably
|
||||
* partition the SRAM section differently. In particular, if the page
|
||||
* table is located at the end of SRAM, then the virtual page table address
|
||||
* defined below will probably be in error. In that case PGTABLE_BASE_VADDR
|
||||
* is defined in the file mmu.h
|
||||
*
|
||||
* We must declare the page table at the bottom or at the top of internal
|
||||
* SRAM. We pick the bottom of internal SRAM *unless* there are vectors
|
||||
@@ -589,18 +589,18 @@
|
||||
/* In this case, page table must lie at the top 16Kb of ISRAM1 (or ISRAM0
|
||||
* if ISRAM1 is not available in this architecture)
|
||||
*
|
||||
* If CONFIG_PAGING is defined, then mmu.h assign the virtual address
|
||||
* If CONFIG_LEGACY_PAGING is defined, then mmu.h assign the virtual address
|
||||
* of the page table.
|
||||
*/
|
||||
|
||||
# if SAM_ISRAM1_SIZE > 0
|
||||
# define PGTABLE_BASE_PADDR (SAM_ISRAM1_PADDR+SAM_ISRAM1_SIZE-PGTABLE_SIZE)
|
||||
# ifndef CONFIG_PAGING
|
||||
# ifndef CONFIG_LEGACY_PAGING
|
||||
# define PGTABLE_BASE_VADDR (SAM_ISRAM1_VADDR+SAM_ISRAM1_SIZE-PGTABLE_SIZE)
|
||||
# endif
|
||||
# else
|
||||
# define PGTABLE_BASE_PADDR (SAM_ISRAM0_PADDR+SAM_ISRAM0_SIZE-PGTABLE_SIZE)
|
||||
# ifndef CONFIG_PAGING
|
||||
# ifndef CONFIG_LEGACY_PAGING
|
||||
# define PGTABLE_BASE_VADDR (SAM_ISRAM0_VADDR+SAM_ISRAM0_SIZE-PGTABLE_SIZE)
|
||||
# endif
|
||||
# endif
|
||||
@@ -629,7 +629,7 @@
|
||||
*/
|
||||
|
||||
# define PGTABLE_BASE_PADDR SAM_ISRAM0_PADDR
|
||||
# ifndef CONFIG_PAGING
|
||||
# ifndef CONFIG_LEGACY_PAGING
|
||||
# define PGTABLE_BASE_VADDR SAM_ISRAM0_VADDR
|
||||
# endif
|
||||
# define PGTABLE_IN_LOWSRAM 1
|
||||
@@ -711,7 +711,7 @@
|
||||
* boot memory to address 0x0000:0000 using both the MMU and the AXI
|
||||
* matrix REMAP register. So no L2 page table is required.
|
||||
*
|
||||
* 2) If on-demand paging is supported (CONFIG_PAGING=y), than an
|
||||
* 2) If on-demand paging is supported (CONFIG_LEGACY_PAGING=y), than an
|
||||
* additional L2 page table is needed.
|
||||
* This page table will use the remainder of the address space.
|
||||
*/
|
||||
@@ -746,7 +746,7 @@
|
||||
|
||||
/* Paging L2 page table base addresses
|
||||
*
|
||||
* NOTE: If CONFIG_PAGING is defined, mmu.h will re-assign the virtual
|
||||
* NOTE: If CONFIG_LEGACY_PAGING is defined, mmu.h will re-assign the virtual
|
||||
* address of the page table.
|
||||
*/
|
||||
|
||||
|
||||
@@ -562,12 +562,12 @@
|
||||
# error "CONFIG_ARCH_ROMPGTABLE defined; PGTABLE_BASE_P/VADDR not defined"
|
||||
# endif
|
||||
|
||||
/* If CONFIG_PAGING is selected, then parts of the 1-to-1 virtual memory
|
||||
* map probably do not apply because paging logic will probably partition
|
||||
* the SRAM section differently. In particular, if the page table is located
|
||||
* at the end of SRAM, then the virtual page table address defined below
|
||||
* will probably be in error. In that case PGTABLE_BASE_VADDR is defined
|
||||
* in the file mmu.h
|
||||
/* If CONFIG_LEGACY_PAGING is selected, then parts of the 1-to-1 virtual
|
||||
* memory map probably do not apply because paging logic will probably
|
||||
* partition the SRAM section differently. In particular, if the page
|
||||
* table is located at the end of SRAM, then the virtual page table address
|
||||
* defined below will probably be in error. In that case PGTABLE_BASE_VADDR
|
||||
* is defined in the file mmu.h
|
||||
*
|
||||
* We must declare the page table at the bottom or at the top of internal
|
||||
* SRAM. We pick the bottom of internal SRAM *unless* there are vectors
|
||||
@@ -579,18 +579,18 @@
|
||||
/* In this case, page table must lie at the top 16Kb of ISRAM1 (or ISRAM0
|
||||
* if ISRAM1 is not available in this architecture)
|
||||
*
|
||||
* If CONFIG_PAGING is defined, then mmu.h assign the virtual address
|
||||
* If CONFIG_LEGACY_PAGING is defined, then mmu.h assign the virtual address
|
||||
* of the page table.
|
||||
*/
|
||||
|
||||
# if SAM_ISRAM1_SIZE > 0
|
||||
# define PGTABLE_BASE_PADDR (SAM_ISRAM1_PADDR+SAM_ISRAM1_SIZE-PGTABLE_SIZE)
|
||||
# ifndef CONFIG_PAGING
|
||||
# ifndef CONFIG_LEGACY_PAGING
|
||||
# define PGTABLE_BASE_VADDR (SAM_ISRAM1_VADDR+SAM_ISRAM1_SIZE-PGTABLE_SIZE)
|
||||
# endif
|
||||
# else
|
||||
# define PGTABLE_BASE_PADDR (SAM_ISRAM0_PADDR+SAM_ISRAM0_SIZE-PGTABLE_SIZE)
|
||||
# ifndef CONFIG_PAGING
|
||||
# ifndef CONFIG_LEGACY_PAGING
|
||||
# define PGTABLE_BASE_VADDR (SAM_ISRAM0_VADDR+SAM_ISRAM0_SIZE-PGTABLE_SIZE)
|
||||
# endif
|
||||
# endif
|
||||
@@ -619,7 +619,7 @@
|
||||
*/
|
||||
|
||||
# define PGTABLE_BASE_PADDR SAM_ISRAM0_PADDR
|
||||
# ifndef CONFIG_PAGING
|
||||
# ifndef CONFIG_LEGACY_PAGING
|
||||
# define PGTABLE_BASE_VADDR SAM_ISRAM0_VADDR
|
||||
# endif
|
||||
# define PGTABLE_IN_LOWSRAM 1
|
||||
@@ -703,9 +703,9 @@
|
||||
* memory to address 0x0000:0000 using both the MMU and the AXI matrix
|
||||
* REMAP register. So no L2 page table is required.
|
||||
*
|
||||
* 2) If on-demand paging is supported (CONFIG_PAGING=y), than an additional
|
||||
* L2 page table is needed. This page table will use the remainder of
|
||||
* the address space.
|
||||
* 2) If on-demand paging is supported (CONFIG_LEGACY_PAGING=y), than an
|
||||
* additional L2 page table is needed. This page table will use the
|
||||
* remainder of the address space.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_ARCH_LOWVECTORS
|
||||
@@ -738,7 +738,7 @@
|
||||
|
||||
/* Paging L2 page table base addresses
|
||||
*
|
||||
* NOTE: If CONFIG_PAGING is defined, mmu.h will re-assign the virtual
|
||||
* NOTE: If CONFIG_LEGACY_PAGING is defined, mmu.h will re-assign the virtual
|
||||
* address of the page table.
|
||||
*/
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/cache.h>
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
#endif
|
||||
|
||||
@@ -102,7 +102,7 @@ static inline void sam_remap(void)
|
||||
****************************************************************************/
|
||||
|
||||
#if !defined(CONFIG_ARCH_ROMPGTABLE) && defined(CONFIG_ARCH_LOWVECTORS) && \
|
||||
defined(CONFIG_PAGING)
|
||||
defined(CONFIG_LEGACY_PAGING)
|
||||
static void sam_vectorpermissions(uint32_t mmuflags)
|
||||
{
|
||||
/* The PTE for the beginning of ISRAM is at the base of the L2 page table */
|
||||
@@ -217,7 +217,7 @@ static void sam_copyvectorblock(void)
|
||||
uint32_t *end;
|
||||
uint32_t *dest;
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
/* If we are using re-mapped vectors in an area that has been marked
|
||||
* read only, then temporarily mark the mapping write-able (non-buffered).
|
||||
*/
|
||||
@@ -243,7 +243,7 @@ static void sam_copyvectorblock(void)
|
||||
*dest++ = *src++;
|
||||
}
|
||||
|
||||
#if !defined(CONFIG_ARCH_LOWVECTORS) && defined(CONFIG_PAGING)
|
||||
#if !defined(CONFIG_ARCH_LOWVECTORS) && defined(CONFIG_LEGACY_PAGING)
|
||||
/* Make the vectors read-only, cacheable again */
|
||||
|
||||
sam_vectorpermissions(MMU_L2_VECTORFLAGS);
|
||||
|
||||
@@ -97,7 +97,7 @@ const struct section_mapping_s g_section_mapping[] =
|
||||
SAM_NFCSRAM_MMUFLAGS, SAM_NFCSRAM_NSECTIONS
|
||||
},
|
||||
|
||||
#ifndef CONFIG_PAGING /* Internal SRAM is already fully mapped */
|
||||
#ifndef CONFIG_LEGACY_PAGING /* Internal SRAM is already fully mapped */
|
||||
{ SAM_ISRAM_PSECTION, SAM_ISRAM_VSECTION,
|
||||
SAM_ISRAM_MMUFLAGS, SAM_ISRAM_NSECTIONS
|
||||
},
|
||||
|
||||
@@ -110,7 +110,7 @@ const struct section_mapping_s g_section_mapping[] =
|
||||
SAM_NFCSRAM_MMUFLAGS, SAM_NFCSRAM_NSECTIONS
|
||||
},
|
||||
|
||||
#ifndef CONFIG_PAGING /* Internal SRAM is already fully mapped */
|
||||
#ifndef CONFIG_LEGACY_PAGING /* Internal SRAM is already fully mapped */
|
||||
{ SAM_ISRAM_PSECTION, SAM_ISRAM_VSECTION,
|
||||
SAM_ISRAM_MMUFLAGS, SAM_ISRAM_NSECTIONS
|
||||
},
|
||||
|
||||
@@ -110,7 +110,7 @@ const struct section_mapping_s g_section_mapping[] =
|
||||
SAM_NFCSRAM_MMUFLAGS, SAM_NFCSRAM_NSECTIONS
|
||||
},
|
||||
|
||||
#ifndef CONFIG_PAGING /* Internal SRAM is already fully mapped */
|
||||
#ifndef CONFIG_LEGACY_PAGING /* Internal SRAM is already fully mapped */
|
||||
{ SAM_ISRAM_PSECTION, SAM_ISRAM_VSECTION,
|
||||
SAM_ISRAM_MMUFLAGS, SAM_ISRAM_NSECTIONS
|
||||
},
|
||||
|
||||
@@ -254,7 +254,7 @@ struct xcptcontext
|
||||
* address register (FAR) at the time of data abort exception.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
uintptr_t far;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/cache.h>
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -299,11 +299,11 @@ uint64_t *arm64_doirq(int irq, uint64_t *regs);
|
||||
|
||||
/* Paging support */
|
||||
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
void arm64_pginitialize(void);
|
||||
#else /* CONFIG_PAGING */
|
||||
#else /* CONFIG_LEGACY_PAGING */
|
||||
# define arm64_pginitialize()
|
||||
#endif /* CONFIG_PAGING */
|
||||
#endif /* CONFIG_LEGACY_PAGING */
|
||||
|
||||
uint64_t * arm64_syscall_switch(uint64_t *regs);
|
||||
int arm64_syscall(uint64_t *regs);
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/cache.h>
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/cache.h>
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/cache.h>
|
||||
#ifdef CONFIG_PAGING
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
#endif
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user