From 7c19e50bdd3b6ae234b171992f2e109d4f804cda Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 18 Dec 2018 08:45:06 +0100 Subject: score: Fix per-CPU data allocation Allocate the per-CPU data for secondary processors directly from the heap areas before heap initialization and not via _Workspace_Allocate_aligned(). This avoids dependency on the workspace allocator. It fixes also a problem on some platforms (e.g. QorIQ) where at this early point in the system initialization the top of the RAM is used by low-level startup code on secondary processors (boot pages). Update #3507. --- cpukit/include/rtems/score/interr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/include/rtems/score/interr.h') diff --git a/cpukit/include/rtems/score/interr.h b/cpukit/include/rtems/score/interr.h index df1a1298d9..54e6ec759d 100644 --- a/cpukit/include/rtems/score/interr.h +++ b/cpukit/include/rtems/score/interr.h @@ -193,7 +193,8 @@ typedef enum { INTERNAL_ERROR_LIBIO_STDOUT_FD_OPEN_FAILED = 36, INTERNAL_ERROR_LIBIO_STDERR_FD_OPEN_FAILED = 37, INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNIT = 38, - INTERNAL_ERROR_ARC4RANDOM_GETENTROPY_FAIL = 39 + INTERNAL_ERROR_ARC4RANDOM_GETENTROPY_FAIL = 39, + INTERNAL_ERROR_NO_MEMORY_FOR_PER_CPU_DATA = 40 } Internal_errors_Core_list; typedef CPU_Uint32ptr Internal_errors_t; -- cgit v1.2.3