Skip to content

Commit 1565962

Browse files
committed
Reenable LTO and default configSUPPORT_STATIC_ALLOCATION to 0
1 parent 70c1a2d commit 1565962

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/FreeRTOSConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
#define configUSE_MALLOC_FAILED_HOOK 1
108108

109109
#define configSUPPORT_DYNAMIC_ALLOCATION 1
110-
#define configSUPPORT_STATIC_ALLOCATION 1
110+
#define configSUPPORT_STATIC_ALLOCATION 0
111111

112112
/* Timer definitions. */
113113
#define configUSE_TIMERS 1

src/tasks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ typedef tskTCB TCB_t;
374374
/*lint -e956 A manual analysis and inspection has been used to determine which
375375
static variables must be declared volatile. */
376376

377-
PRIVILEGED_DATA TCB_t * volatile pxCurrentTCB = NULL;
377+
PRIVILEGED_DATA TCB_t * volatile pxCurrentTCB __attribute__((used)) = NULL;
378378

379379
/* Lists for ready and blocked tasks. --------------------*/
380380
PRIVILEGED_DATA static List_t pxReadyTasksLists[ configMAX_PRIORITIES ];/*< Prioritised ready tasks. */

0 commit comments

Comments
 (0)