mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
Increase stack size slightly for vboot hash task since the vboot SHA256 function allocates ~300 bytes of stack data. Reduce stack size for watchdog, power LED, and a few other tasks with simple call trees where we can be sure an error path isn't going to blow past the reduced stack. This frees up ~1KB of RAM on STM32. BUG=chrome-os-partner:13814 BRANCH=all TEST=boot system; shmem should show more unused RAM; taskinfo should show tasks still have unused stack Change-Id: I47d6b77564a0180d15d86667cc0566a8919b776e Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/32608 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
/* define the task identifier of all compiled tasks */
|
|
|
|
#ifndef __TASK_ID_H
|
|
#define __TASK_ID_H
|
|
|
|
/* define the name of the header containing the list of tasks */
|
|
#define STRINGIFY0(name) #name
|
|
#define STRINGIFY(name) STRINGIFY0(name)
|
|
#define TASK_LIST STRINGIFY(TASKFILE)
|
|
|
|
/* Task identifier (8 bits) */
|
|
typedef uint8_t task_id_t;
|
|
|
|
/**
|
|
* enumerate all tasks in the priority order
|
|
*
|
|
* the identifier of a task can be retrieved using the following constant:
|
|
* TASK_ID_<taskname> where <taskname> is the first parameter passed to the
|
|
* TASK macro in the TASK_LIST file.
|
|
*/
|
|
#define TASK(n, r, d, s) TASK_ID_##n,
|
|
#include TASK_LIST
|
|
enum {
|
|
TASK_ID_IDLE,
|
|
/* CONFIG_TASK_LIST is a macro coming from the TASK_LIST file */
|
|
CONFIG_TASK_LIST
|
|
/* Number of tasks */
|
|
TASK_ID_COUNT,
|
|
/* Special task identifiers */
|
|
TASK_ID_INVALID = 0xff /* unable to find the task */
|
|
};
|
|
#undef TASK
|
|
|
|
#endif /* __TASK_ID_H */
|