rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | #ifndef _ASM_DEF_H |
| 2 | #define _ASM_DEF_H |
| 3 | |
| 4 | //#if defined(__PCORE__) |
| 5 | |
| 6 | #ifdef __THUMB2_UNIFIED__ |
| 7 | #define FUNC_ATTR(name) .thumb_func |
| 8 | #define CPU_ISA() .thumb |
| 9 | #define ISA_UNIFIED_SETTING() .syntax unified |
| 10 | #else |
| 11 | #define FUNC_ATTR(name) .type name, %function |
| 12 | #define CPU_ISA() .arm |
| 13 | #define ISA_UNIFIED_SETTING() |
| 14 | #endif |
| 15 | |
| 16 | #ifdef __STACK_ALIGN_MPU__ |
| 17 | #define STACK_ALIGN_NUM 5 |
| 18 | #else |
| 19 | #define STACK_ALIGN_NUM 3 |
| 20 | #endif |
| 21 | |
| 22 | |
| 23 | //#else |
| 24 | |
| 25 | //#define FUNC_ATTR(name) .type name, %function |
| 26 | //#define CPU_ISA() .arm |
| 27 | //#define ISA_UNIFIED_SETTING() |
| 28 | |
| 29 | //#endif |
| 30 | |
| 31 | #endif |
| 32 | |