diff options
| author | guozhanxin <[email protected]> | 2023-09-26 17:37:10 +0800 |
|---|---|---|
| committer | guo <[email protected]> | 2023-09-27 10:16:46 +0800 |
| commit | d8a2084c057d6116b81a93d334e00f3ba1df67bf (patch) | |
| tree | 7cfb54e269103810a29480920ff68d9df22a839c | |
| parent | 6d506dc5b6ba67f87b0a0a9c5728933e9a39e935 (diff) | |
[libcpu/cortex-a] Fix the problem of circular include of cpuport.h
| -rw-r--r-- | libcpu/arm/cortex-a/backtrace.h | 1 | ||||
| -rw-r--r-- | libcpu/arm/cortex-a/cpuport.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/libcpu/arm/cortex-a/backtrace.h b/libcpu/arm/cortex-a/backtrace.h index a6ed226094..c82ef66fc0 100644 --- a/libcpu/arm/cortex-a/backtrace.h +++ b/libcpu/arm/cortex-a/backtrace.h @@ -2,6 +2,7 @@ #define __BACKTRACE_H #ifndef __ASSEMBLY__ +#include <rtthread.h> #include <cpuport.h> /* Unwind reason code according the the ARM EABI documents */ diff --git a/libcpu/arm/cortex-a/cpuport.h b/libcpu/arm/cortex-a/cpuport.h index 2cb80f0d33..5aec5a84bc 100644 --- a/libcpu/arm/cortex-a/cpuport.h +++ b/libcpu/arm/cortex-a/cpuport.h @@ -10,8 +10,6 @@ #ifndef CPUPORT_H__ #define CPUPORT_H__ -#include <rtthread.h> - /* the exception stack without VFP registers */ struct rt_hw_exp_stack { |
