diff options
| author | guo <[email protected]> | 2022-12-16 18:38:28 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-16 18:38:28 +0800 |
| commit | 68ca9f07a60ad5cbe52b37b52299327b6246e7f7 (patch) | |
| tree | b990c35d5b20e515adb604b85b2b10dae0cf034b /src/cpu.c | |
| parent | 3ea5166376dbc05722d793c3183c15b3a01e7f3a (diff) | |
[rt-smart] 弱化 RT_USING_LWP,使用 RT_USING_SMART 作为宏配置 (#6740)
* [dfs] sync cromfs
* [rt-smart]Weaken RT_USING_LWP, use RT_USING_SMART as macro configuration
* [format] fix some format issue.
Diffstat (limited to 'src/cpu.c')
| -rw-r--r-- | src/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,7 +10,7 @@ #include <rthw.h> #include <rtthread.h> -#ifdef RT_USING_USERSPACE +#ifdef RT_USING_SMART #include <lwp.h> #endif @@ -246,7 +246,7 @@ void rt_cpus_lock_status_restore(struct rt_thread *thread) { struct rt_cpu* pcpu = rt_cpu_self(); -#ifdef RT_USING_USERSPACE +#if defined(ARCH_MM_MMU) && defined(RT_USING_SMART) lwp_mmu_switch(thread); #endif pcpu->current_thread = thread; |
