seL4/include/kernel/stack.h
Qian Ge 512a0200de replacing all ifndef with pargma once
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.
2020-03-23 11:04:46 +11:00

19 lines
565 B
C

/*
* Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
*
* SPDX-License-Identifier: GPL-2.0-only
*/
#pragma once
#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)];