diff options
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/Kconfig | 22 | ||||
| -rw-r--r-- | libcpu/arm/sep4020/sep4020.h | 6 | ||||
| -rw-r--r-- | libcpu/sim/win32/startup.c | 8 | ||||
| -rw-r--r-- | libcpu/unicore32/sep6200/sep6200.h | 6 |
4 files changed, 21 insertions, 21 deletions
diff --git a/libcpu/Kconfig b/libcpu/Kconfig index c50571eda2..0a667f6281 100644 --- a/libcpu/Kconfig +++ b/libcpu/Kconfig @@ -89,18 +89,18 @@ config ARCH_ARM_MMU depends on ARCH_ARM if RT_USING_SMART -config KERNEL_VADDR_START - hex "The virtural address of kernel start" - default 0xffff000000000000 if ARCH_ARMV8 - default 0xc0000000 if ARCH_ARM - default 0x80000000 if ARCH_RISCV - depends on ARCH_MM_MMU + config KERNEL_VADDR_START + hex "The virtural address of kernel start" + default 0xffff000000000000 if ARCH_ARMV8 + default 0xc0000000 if ARCH_ARM + default 0x80000000 if ARCH_RISCV + depends on ARCH_MM_MMU -config RT_IOREMAP_LATE - bool "Support to create IO mapping in the kernel address space after system initlalization." - default n - depends on ARCH_ARM_CORTEX_A - depends on ARCH_MM_MMU + config RT_IOREMAP_LATE + bool "Support to create IO mapping in the kernel address space after system initlalization." + default n + depends on ARCH_ARM_CORTEX_A + depends on ARCH_MM_MMU endif config ARCH_ARM_ARM9 diff --git a/libcpu/arm/sep4020/sep4020.h b/libcpu/arm/sep4020/sep4020.h index bb8effbff0..b5654794b1 100644 --- a/libcpu/arm/sep4020/sep4020.h +++ b/libcpu/arm/sep4020/sep4020.h @@ -808,8 +808,8 @@ typedef int ER; /* Error code. A signed integer. */ rt_kprintf(fmt,##__VA_ARGS__); \ }while(0) -#define RT_DEBUG -#ifdef RT_DEBUG +#define RT_USING_DEBUG +#ifdef RT_USING_DEBUG #define DBOUT(fmt,...) \ do \ { \ @@ -821,7 +821,7 @@ typedef int ER; /* Error code. A signed integer. */ do{}while(0) #endif -#ifdef RT_DEBUG +#ifdef RT_USING_DEBUG #define ASSERT(arg) \ if((arg) == 0) \ { \ diff --git a/libcpu/sim/win32/startup.c b/libcpu/sim/win32/startup.c index 583b93205b..ba2871eae6 100644 --- a/libcpu/sim/win32/startup.c +++ b/libcpu/sim/win32/startup.c @@ -81,7 +81,7 @@ struct rt_init_tag { const char *level; init_fn_t fn; -#ifdef RT_DEBUG_INIT +#ifdef RT_DEBUGING_INIT const char *fn_name; #endif }; @@ -114,7 +114,7 @@ static int rt_init_objects_sort(void) { table->level = ((struct rt_init_desc *)ptr_begin)->level; table->fn = ((struct rt_init_desc *)ptr_begin)->fn; -#ifdef RT_DEBUG_INIT +#ifdef RT_DEBUGING_INIT table->fn_name = ((struct rt_init_desc *)ptr_begin)->fn_name; #endif ptr_begin += sizeof(struct rt_init_desc) / sizeof(unsigned int); @@ -168,7 +168,7 @@ void rt_components_board_init(void) { break; } -#ifdef RT_DEBUG_INIT +#ifdef RT_DEBUGING_INIT rt_kprintf("initialize %s", rt_init_table[index_i].fn_name); result = rt_init_table[index_i].fn(); rt_kprintf(":%d done\n", result); @@ -203,7 +203,7 @@ void rt_components_init(void) { break; } -#ifdef RT_DEBUG_INIT +#ifdef RT_DEBUGING_INIT rt_kprintf("initialize %s", rt_init_table[index_i].fn_name); result = rt_init_table[index_i].fn(); rt_kprintf(":%d done\n", result); diff --git a/libcpu/unicore32/sep6200/sep6200.h b/libcpu/unicore32/sep6200/sep6200.h index 773b505a02..4b9eab6d79 100644 --- a/libcpu/unicore32/sep6200/sep6200.h +++ b/libcpu/unicore32/sep6200/sep6200.h @@ -374,8 +374,8 @@ typedef int ER; /* Error code. A signed integer. */ rt_kprintf(fmt,##__VA_ARGS__); \ }while(0) -#define RT_DEBUG -#ifdef RT_DEBUG +#define RT_USING_DEBUG +#ifdef RT_USING_DEBUG #define DBOUT(fmt,...) \ do \ { \ @@ -387,7 +387,7 @@ typedef int ER; /* Error code. A signed integer. */ do{}while(0) #endif -#ifdef RT_DEBUG +#ifdef RT_USING_DEBUG #define ASSERT(arg) \ if((arg) == 0) \ { \ |
