mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
include/nuttx/compiler.h:
fix nooptimiziation_function definition problem for tricore gnu compiler arch/tricore: move tricore_csa2addr and tricore_addr2csa definition from include/arch.h to include/irq.h to fix build error
This commit is contained in:
committed by
Alan C. Assis
parent
7e258621df
commit
057b483350
@@ -42,13 +42,6 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* Address <--> Context Save Areas */
|
||||
|
||||
#define tricore_csa2addr(csa) ((uintptr_t *)((((csa) & 0x000F0000) << 12) \
|
||||
| (((csa) & 0x0000FFFF) << 6)))
|
||||
#define tricore_addr2csa(addr) ((uintptr_t)(((((uintptr_t)(addr)) & 0xF0000000) >> 12) \
|
||||
| (((uintptr_t)(addr) & 0x003FFFC0) >> 6)))
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
@@ -48,6 +48,13 @@
|
||||
* Pre-processor Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
/* Address <--> Context Save Areas */
|
||||
|
||||
#define tricore_csa2addr(csa) ((uintptr_t *)((((csa) & 0x000F0000) << 12) \
|
||||
| (((csa) & 0x0000FFFF) << 6)))
|
||||
#define tricore_addr2csa(addr) ((uintptr_t)(((((uintptr_t)(addr)) & 0xF0000000) >> 12) \
|
||||
| (((uintptr_t)(addr) & 0x003FFFC0) >> 6)))
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user