seL4/include/kernel/stack.h
2017-06-22 15:29:12 +10:00

26 lines
874 B
C

/*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
* See "LICENSE_GPLv2.txt" for details.
*
* @TAG(DATA61_GPL)
*/
#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 architecures/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 */