From 8ecbc3826edfbfebabf5b9b75243df8b04421073 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 4 Feb 2020 13:56:41 +0100 Subject: sysinit: Add RTEMS_SYSINIT_ZERO_MEMORY Use a dedicate system initialization step to zero the memory used for the workspace and C program heap. This avoids dead code in case CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY is not configured. --- cpukit/include/rtems/sysinit.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/include/rtems/sysinit.h') diff --git a/cpukit/include/rtems/sysinit.h b/cpukit/include/rtems/sysinit.h index 58f35542b7..d181c42780 100644 --- a/cpukit/include/rtems/sysinit.h +++ b/cpukit/include/rtems/sysinit.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2018 embedded brains GmbH. All rights reserved. + * Copyright (c) 2015, 2020 embedded brains GmbH. All rights reserved. * * embedded brains GmbH * Dornierstr. 4 @@ -30,6 +30,7 @@ extern "C" { #define RTEMS_SYSINIT_BSP_EARLY 000140 #define RTEMS_SYSINIT_MEMORY 000180 #define RTEMS_SYSINIT_DIRTY_MEMORY 0001c0 +#define RTEMS_SYSINIT_ZERO_MEMORY 0001e0 #define RTEMS_SYSINIT_ISR_STACK 000200 #define RTEMS_SYSINIT_PER_CPU_DATA 000220 #define RTEMS_SYSINIT_SBRK 000240 -- cgit v1.2.3