Changeset f1738ed in rtems

Timestamp:
11/04/12 20:04:39 (11 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
acec386
Parents:
74d22fd1
git-author:
Sebastian Huber <sebastian.huber@…> (11/04/12 20:04:39)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/22/12 15:35:07)
Message:

score: PR1607: Add and use CPU_SIZEOF_POINTER

Add and use new CPU port define CPU_SIZEOF_POINTER. It must be an
integer literal that can be used by the assembler. This value will be
used to calculate offsets of structure members. These offsets will be
used in assembler code.

The size of a pointer is part of the application binary interface (ABI)
and thus independent of the actual programming language. The compiler
will provide defines to determine the current ABI. We use these defines
to select the appropriate CPU_SIZEOF_POINTER value.

Static assertions in the new file "cpukit/score/src/percpuasm.c" will
ensure that the value of CPU_SIZEOF_POINTER is consistent with the
current compiler settings. Also the offset values used by assembler
code are verfied.

(No files)

Note: See TracChangeset for help on using the changeset viewer.