X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fattr.h;h=1e469e6abaccdedfcfafc5053022e0798f4e2cce;hb=b59de1faa4a3d4656d9ffe3e2cc513abc55fb6b3;hp=b0ac8a4d7401fc6231a5ea8a3d58944740258d98;hpb=3c39d4d894849ce0115c6e1efe14b003aa2e91e1;p=bertos.git diff --git a/bertos/cpu/attr.h b/bertos/cpu/attr.h index b0ac8a4d..1e469e6a 100644 --- a/bertos/cpu/attr.h +++ b/bertos/cpu/attr.h @@ -34,7 +34,7 @@ * \brief CPU-specific attributes. * * \author Giovanni Bajo - * \author Bernardo Innocenti + * \author Bernie Innocenti * \author Stefano Fedrigo * \author Francesco Sacchi */ @@ -42,10 +42,11 @@ #define CPU_ATTR_H #include "detect.h" -#include /* for uintXX_t */ -#include /* ARCH_EMUL */ -#include "appconfig.h" // CONFIG_FAST_MEM +#include "cfg/cfg_attr.h" /* CONFIG_FAST_MEM */ +#include "cfg/cfg_arch.h" /* ARCH_EMUL */ +#include /* for uintXX_t */ + /** * \name Macros for determining CPU endianness. @@ -114,9 +115,9 @@ #else /* GCC and compatibles */ #if defined(__ARMEB__) - #define CPU_BYTE_ORDER CPU_BIG_ENDIAN - #elif defined(__ARMEL__) - #define CPU_BYTE_ORDER CPU_LITTLE_ENDIAN + #define CPU_BYTE_ORDER CPU_BIG_ENDIAN + #elif defined(__ARMEL__) + #define CPU_BYTE_ORDER CPU_LITTLE_ENDIAN #else #error Unable to detect ARM endianness! #endif @@ -124,17 +125,17 @@ #define NOP asm volatile ("mov r0,r0" ::) /** - * Initialization value for registers in stack frame. - * The register index is not directly corrispondent to CPU - * register numbers, but is related to how are pushed to - * stack (\see asm_switch_context). + * Initialization value for registers in stack frame. + * The register index is not directly corrispondent to CPU + * register numbers, but is related to how are pushed to + * stack (\see asm_switch_context). * Index (CPU_SAVED_REGS_CNT - 1) is the CPSR register, * the initial value is set to: * - All flags (N, Z, C, V) set to 0. * - IRQ and FIQ enabled. * - ARM state. * - CPU in Supervisor Mode (SVC). - */ + */ #define CPU_REG_INIT_VALUE(reg) (reg == (CPU_SAVED_REGS_CNT - 1) ? 0x13 : 0) #if CONFIG_FAST_MEM