All the kernel header files now use pargma once rather than the ifndef, as the pre-processed C files do not change while header files are protected with pargma once. This will also solve any naming issues caused by ifndef.
27 lines
558 B
C
27 lines
558 B
C
/*
|
|
* Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-only
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <config.h>
|
|
#include <arch/types.h>
|
|
#include <arch/model/statedata.h>
|
|
#include <model/statedata.h>
|
|
|
|
#ifdef ENABLE_SMP_SUPPORT
|
|
|
|
typedef struct smpStatedata {
|
|
archNodeState_t cpu;
|
|
nodeState_t system;
|
|
PAD_TO_NEXT_CACHE_LN(sizeof(archNodeState_t) + sizeof(nodeState_t));
|
|
} smpStatedata_t;
|
|
|
|
extern smpStatedata_t ksSMP[CONFIG_MAX_NUM_NODES];
|
|
|
|
void migrateTCB(tcb_t *tcb, word_t new_core);
|
|
|
|
#endif /* ENABLE_SMP_SUPPORT */
|
|
|