mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
[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
This commit is contained in:
+10
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user