diff options
| author | Shell <[email protected]> | 2023-01-09 10:08:55 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-01-08 21:08:55 -0500 |
| commit | 7450ef6c4d71f992444d27f4a26c16f813ed8e55 (patch) | |
| tree | 1d9b450d85c2c048cae2410e97ef9edfc2868323 /src | |
| parent | 7f9ccd3c809afa6b54f0d453f2edcc8367a6aeb8 (diff) | |
[rt-smart] kernel virtual memory management layer (#6809)
synchronize virtual memory system works.
adding kernel virtual memory management layer for page-based MMU enabled architecture
porting libcpu MMU codes
porting lwp memory related codes
Diffstat (limited to 'src')
| -rw-r--r-- | src/Kconfig | 10 | ||||
| -rw-r--r-- | src/cpu.c | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/Kconfig b/src/Kconfig index 1711b67bc3..ee6f6643ee 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -303,6 +303,16 @@ endmenu menu "Memory Management" + config RT_PAGE_MAX_ORDER + int "Max order of pages allocatable by page allocator" + default 11 + help + For example, A value of 11 means the maximum chunk of contiguous memory + allocatable by page system is 2^(11 + ARCH_PAGE_BITS - 1) Bytes. + Large memory requirement can consume all system resource, and should + consider reserved memory instead to enhance system endurance. + Max order should at least satisfied usage by huge page. + config RT_USING_MEMPOOL bool "Using memory pool" default y @@ -247,7 +247,7 @@ void rt_cpus_lock_status_restore(struct rt_thread *thread) struct rt_cpu* pcpu = rt_cpu_self(); #if defined(ARCH_MM_MMU) && defined(RT_USING_SMART) - lwp_mmu_switch(thread); + lwp_aspace_switch(thread); #endif pcpu->current_thread = thread; if (!thread->cpus_lock_nest) |
