1/*
2 * Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 */
6
7#pragma once
8
9#include <config.h>
10#include <util.h>
11#include <mode/kernel/stack.h>
12
13/* These are the stacks used in kernel, shared between architectures/modes.
14 * CONFIG_KERNEL_STACK_BITS is defined in kernel/Kconfig. The physical/offset
15 * address of the stack is per-arch-mode aligned. KERNEL_STACK_ALIGNMENT is
16 * defined for each arch/mode in <mode/kernel/stack.h>
17 */
18extern char kernel_stack_alloc[CONFIG_MAX_NUM_NODES][BIT(CONFIG_KERNEL_STACK_BITS)];
19
20