mirror of
https://github.com/apache/nuttx.git
synced 2026-09-28 15:54:57 +08:00
arch: add use_data to g_tcbinfo
to avoid compiler/linker remove it from the final image Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
4db39d7afd
commit
cb11747f36
@@ -57,7 +57,7 @@ static const uint16_t g_reg_offs[] =
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
const struct tcbinfo_s g_tcbinfo =
|
||||
const struct tcbinfo_s g_tcbinfo used_data =
|
||||
{
|
||||
.pid_off = TCB_PID_OFF,
|
||||
.state_off = TCB_STATE_OFF,
|
||||
|
||||
@@ -64,7 +64,7 @@ static const uint16_t g_reg_offs[] =
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
const struct tcbinfo_s g_tcbinfo =
|
||||
const struct tcbinfo_s g_tcbinfo used_data =
|
||||
{
|
||||
.pid_off = TCB_PID_OFF,
|
||||
.state_off = TCB_STATE_OFF,
|
||||
|
||||
@@ -99,7 +99,7 @@ static const uint16_t g_reg_offs[] =
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
const struct tcbinfo_s g_tcbinfo =
|
||||
const struct tcbinfo_s g_tcbinfo used_data =
|
||||
{
|
||||
.pid_off = TCB_PID_OFF,
|
||||
.state_off = TCB_STATE_OFF,
|
||||
|
||||
@@ -105,7 +105,7 @@ static const uint16_t g_reg_offs[] =
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
const struct tcbinfo_s g_tcbinfo =
|
||||
const struct tcbinfo_s g_tcbinfo used_data =
|
||||
{
|
||||
.pid_off = TCB_PID_OFF,
|
||||
.state_off = TCB_STATE_OFF,
|
||||
|
||||
@@ -99,7 +99,7 @@ static const uint16_t g_reg_offs[] =
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
const struct tcbinfo_s g_tcbinfo =
|
||||
const struct tcbinfo_s g_tcbinfo used_data =
|
||||
{
|
||||
.pid_off = TCB_PID_OFF,
|
||||
.state_off = TCB_STATE_OFF,
|
||||
|
||||
@@ -105,7 +105,7 @@ static const uint16_t g_reg_offs[] =
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
const struct tcbinfo_s g_tcbinfo =
|
||||
const struct tcbinfo_s g_tcbinfo used_data =
|
||||
{
|
||||
.pid_off = TCB_PID_OFF,
|
||||
.state_off = TCB_STATE_OFF,
|
||||
|
||||
@@ -111,7 +111,7 @@ static const uint16_t g_reg_offs[] =
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
const struct tcbinfo_s g_tcbinfo =
|
||||
const struct tcbinfo_s g_tcbinfo used_data =
|
||||
{
|
||||
.pid_off = TCB_PID_OFF,
|
||||
.state_off = TCB_STATE_OFF,
|
||||
|
||||
@@ -84,7 +84,7 @@ static const uint16_t g_reg_offs[] =
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
const struct tcbinfo_s g_tcbinfo =
|
||||
const struct tcbinfo_s g_tcbinfo used_data =
|
||||
{
|
||||
.pid_off = TCB_PID_OFF,
|
||||
.state_off = TCB_STATE_OFF,
|
||||
|
||||
@@ -63,7 +63,7 @@ static const uint16_t g_reg_offs[] =
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
const struct tcbinfo_s g_tcbinfo =
|
||||
const struct tcbinfo_s g_tcbinfo used_data =
|
||||
{
|
||||
.pid_off = TCB_PID_OFF,
|
||||
.state_off = TCB_STATE_OFF,
|
||||
|
||||
@@ -58,7 +58,7 @@ static const uint16_t g_reg_offs[] =
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
const struct tcbinfo_s g_tcbinfo =
|
||||
const struct tcbinfo_s g_tcbinfo used_data =
|
||||
{
|
||||
.pid_off = TCB_PID_OFF,
|
||||
.state_off = TCB_STATE_OFF,
|
||||
|
||||
Reference in New Issue
Block a user