summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/x86_64/include/rtems/score/cpu.h
diff options
context:
space:
mode:
authorAmaan Cheval <amaan.cheval@gmail.com>2018-08-13 15:51:47 +0530
committerJoel Sherrill <joel@rtems.org>2018-08-13 10:48:20 -0500
commitab971bf5e37a057432c267175ddf12d6799a2b35 (patch)
treeebc850151dee80f7bbd28ecac40987f34516cfaa /cpukit/score/cpu/x86_64/include/rtems/score/cpu.h
parentlibtests/POSIX: Fix warnings and style. (diff)
downloadrtems-ab971bf5e37a057432c267175ddf12d6799a2b35.tar.bz2
bsps/x86_64: Reorganize header files and compile-options
Updates #2898.
Diffstat (limited to 'cpukit/score/cpu/x86_64/include/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/x86_64/include/rtems/score/cpu.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/score/cpu/x86_64/include/rtems/score/cpu.h b/cpukit/score/cpu/x86_64/include/rtems/score/cpu.h
index 5c40af7647..557d11109d 100644
--- a/cpukit/score/cpu/x86_64/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/x86_64/include/rtems/score/cpu.h
@@ -40,6 +40,7 @@ extern "C" {
#endif
#include <rtems/score/basedefs.h>
+#include <rtems/score/cpu_asm.h>
#include <rtems/score/x86_64.h>
#define CPU_SIMPLE_VECTORED_INTERRUPTS FALSE
@@ -54,7 +55,7 @@ extern "C" {
#define CPU_PROVIDES_IDLE_THREAD_BODY FALSE
#define CPU_STACK_GROWS_UP FALSE
-#define CPU_STRUCTURE_ALIGNMENT __attribute__((aligned ( 64 )))
+#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED(64)
#define CPU_CACHE_LINE_BYTES 64
#define CPU_MODES_INTERRUPT_MASK 0x00000001
#define CPU_MAXIMUM_PROCESSORS 32
@@ -104,7 +105,7 @@ typedef struct {
uint32_t special_interrupt_register;
} CPU_Interrupt_frame;
-#endif /* ASM */
+#endif /* !ASM */
#define CPU_CONTEXT_FP_SIZE sizeof( Context_Control_fp )