seL4/include/kernel/stack.h
Gerwin Klein 79da079239 Convert license tags to SPDX identifiers
This commit also converts our own copyright headers to directly use
SPDX, but leaves all other copyright header intact, only adding the
SPDX ident. As far as possible this commit also merges multiple
Data61 copyright statements/headers into one for consistency.
2020-03-09 13:21:49 +08:00

21 lines
632 B
C

/*
* Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
*
* SPDX-License-Identifier: GPL-2.0-only
*/
#ifndef __KERNEL_STACK_H
#define __KERNEL_STACK_H
#include <config.h>
#include <util.h>
#include <mode/kernel/stack.h>
/* These are the stacks used in kernel, shared between architectures/modes.
* CONFIG_KERNEL_STACK_BITS is defined in kernel/Kconfig. The physical/offset
* address of the stack is per-arch-mode aligned. KERNEL_STACK_ALIGNMENT is
* defined for each arch/mode in <mode/kernel/stack.h>
*/
extern char kernel_stack_alloc[CONFIG_MAX_NUM_NODES][BIT(CONFIG_KERNEL_STACK_BITS)];
#endif /* __KERNEL_STACK_H */