1/* 2 * Copyright 2017, Data61 3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) 4 * ABN 41 687 119 230. 5 * 6 * This software may be distributed and modified according to the terms of 7 * the GNU General Public License version 2. Note that NO WARRANTY is provided. 8 * See "LICENSE_GPLv2.txt" for details. 9 * 10 * @TAG(DATA61_GPL) 11 */ 12#ifndef __KERNEL_STACK_H 13#define __KERNEL_STACK_H 14 15#include <config.h> 16#include <util.h> 17#include <mode/kernel/stack.h> 18 19/* These are the stacks used in kernel, shared between architectures/modes. 20 * CONFIG_KERNEL_STACK_BITS is defined in kernel/Kconfig. The physical/offset 21 * address of the stack is per-arch-mode aligned. KERNEL_STACK_ALIGNMENT is 22 * defined for each arch/mode in <mode/kernel/stack.h> 23 */ 24extern char kernel_stack_alloc[CONFIG_MAX_NUM_NODES][BIT(CONFIG_KERNEL_STACK_BITS)]; 25 26#endif /* __KERNEL_STACK_H */ 27