diff options
| author | Shell <[email protected]> | 2023-03-17 15:11:38 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-03-17 15:11:38 +0800 |
| commit | 18a14cc9351e9c44df539ad21ce825679bc023ca (patch) | |
| tree | ee4ba510ece3819a9ceb14ed30b9b4a4e5a777e2 /components/mm | |
| parent | dfddd79b2453ab13d12b69c7db14e2f685175af7 (diff) | |
[rt-smart] move sys_cacheflush to lwp_syscall.c (#7048)
* [syscall] move sys_cacheflush to lwp_syscall.c
* [syscall] improve assertion
* [format] rename to rt_ctassert
* [debug] modified ct assertion on mm_page.c
Diffstat (limited to 'components/mm')
| -rw-r--r-- | components/mm/mm_page.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/components/mm/mm_page.c b/components/mm/mm_page.c index a53b62aba7..03ab5327b6 100644 --- a/components/mm/mm_page.c +++ b/components/mm/mm_page.c @@ -26,20 +26,11 @@ #define DBG_LVL DBG_WARNING #include <rtdbg.h> +RT_CTASSERT(order_huge_pg, RT_PAGE_MAX_ORDER > ARCH_PAGE_SHIFT - 2); +RT_CTASSERT(size_width, sizeof(rt_size_t) == sizeof(void *)); + #ifdef RT_USING_SMART #include "lwp_arch_comm.h" - -#define CT_ASSERT(name, x) \ - struct assert_##name \ - { \ - char ary[2 * (x)-1]; \ - } -#ifdef ARCH_CPU_64BIT -CT_ASSERT(order_huge_pg, RT_PAGE_MAX_ORDER > ARCH_PAGE_SHIFT - 2); -#else -CT_ASSERT(size_width, sizeof(rt_size_t) == sizeof(rt_size_t)); -#endif /* ARCH_CPU_64BIT */ - #endif /* RT_USING_SMART */ static rt_size_t init_mpr_align_start; |
