Skip to content

Commit 6027910

Browse files
committed
[fix]Fix compilation problem when block is turned on, remove RT_HW_INCLUDE_CPUPORT definition
1 parent 9da813b commit 6027910

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

components/drivers/include/drivers/misc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
#define __MISC_H__
1313

1414
#include <rtdef.h>
15+
#ifdef RT_USING_DM
1516
#include <cpuport.h>
17+
#endif
1618

1719
#ifdef ARCH_CPU_64BIT
1820
#define RT_BITS_PER_LONG 64

include/rthw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#include <rtdef.h>
2424

25-
#if defined (RT_USING_CACHE) || defined(RT_USING_SMP) || defined(RT_HW_INCLUDE_CPUPORT)
25+
#if defined (RT_USING_CACHE) || defined(RT_USING_SMP) || defined(RT_USING_DM)
2626
#include <cpuport.h> /* include spinlock, cache ops, etc. */
2727
#endif
2828

src/kservice.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232

3333
#include <rtthread.h>
3434

35-
/* include rt_hw_backtrace macro defined in cpuport.h */
36-
#define RT_HW_INCLUDE_CPUPORT
3735
#include <rthw.h>
3836

3937
#define DBG_TAG "kernel.service"

0 commit comments

Comments
 (0)