2018-06-25 21:15:14 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Lexmark International, Inc.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief Stack helpers for Cortex-R CPUs
|
|
|
|
*
|
|
|
|
* Stack helper functions.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ARM_CORTEXR_STACK__H_
|
|
|
|
#define _ARM_CORTEXR_STACK__H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _ASMLANGUAGE
|
|
|
|
|
|
|
|
/* nothing */
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
extern K_THREAD_STACK_DEFINE(_interrupt_stack, CONFIG_ISR_STACK_SIZE);
|
|
|
|
|
2019-10-01 03:31:07 +08:00
|
|
|
extern void z_arm_init_stacks(void);
|
2018-06-25 21:15:14 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @brief Setup interrupt stack
|
|
|
|
*
|
|
|
|
* On Cortex-R, the interrupt stack is set up by reset.S
|
|
|
|
*
|
|
|
|
* @return N/A
|
|
|
|
*/
|
2019-10-01 03:31:07 +08:00
|
|
|
static ALWAYS_INLINE void z_arm_interrupt_stack_setup(void)
|
2018-06-25 21:15:14 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _ASMLANGUAGE */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _ARM_CORTEXR_STACK__H_ */
|