* rtems/score/cpu.h: Set alignment requirements according to AAPCS.
This commit is contained in:
Sebastian Huber
2010-11-22 13:06:46 +00:00
parent 3ff9156f6b
commit 71c8457dc0
2 changed files with 9 additions and 3 deletions

View File

@@ -1,3 +1,7 @@
2010-11-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Set alignment requirements according to AAPCS.
2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
PR 1635/cpukit

View File

@@ -12,7 +12,7 @@
* This include file contains information pertaining to the ARM
* processor.
*
* Copyright (c) 2009 embedded brains GmbH.
* Copyright (c) 2009-2010 embedded brains GmbH.
*
* Copyright (c) 2007 Ray Xu <Rayx.cn@gmail.com>
*
@@ -175,13 +175,15 @@
#define CPU_STACK_MINIMUM_SIZE (1024 * 4)
#define CPU_ALIGNMENT 4
/* AAPCS, section 4.1, Fundamental Data Types */
#define CPU_ALIGNMENT 8
#define CPU_HEAP_ALIGNMENT CPU_ALIGNMENT
#define CPU_PARTITION_ALIGNMENT CPU_ALIGNMENT
#define CPU_STACK_ALIGNMENT 4
/* AAPCS, section 5.2.1.2, Stack constraints at a public interface */
#define CPU_STACK_ALIGNMENT 8
/*
* Bitfield handler macros.