kernel: rename nanoArchInit->kernel_arch_init
Change-Id: I094665e583f506cc71185cb6b8630046b2d4b2f8 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
af6bf1c9ed
commit
8df439b40b
9 changed files with 14 additions and 13 deletions
|
@ -31,7 +31,7 @@ extern "C" {
|
||||||
#include <v2/irq.h>
|
#include <v2/irq.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static ALWAYS_INLINE void nanoArchInit(void)
|
static ALWAYS_INLINE void kernel_arch_init(void)
|
||||||
{
|
{
|
||||||
_irq_setup();
|
_irq_setup();
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ GTEXT(k_cpu_atomic_idle)
|
||||||
*
|
*
|
||||||
* @brief Initialization of CPU idle
|
* @brief Initialization of CPU idle
|
||||||
*
|
*
|
||||||
* Only called by nanoArchInit(). Sets SEVONPEND bit once for the system's
|
* Only called by kernel_arch_init(). Sets SEVONPEND bit once for the system's
|
||||||
* duration.
|
* duration.
|
||||||
*
|
*
|
||||||
* @return N/A
|
* @return N/A
|
||||||
|
|
|
@ -29,7 +29,7 @@ extern "C" {
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
extern void _FaultInit(void);
|
extern void _FaultInit(void);
|
||||||
extern void _CpuIdleInit(void);
|
extern void _CpuIdleInit(void);
|
||||||
static ALWAYS_INLINE void nanoArchInit(void)
|
static ALWAYS_INLINE void kernel_arch_init(void)
|
||||||
{
|
{
|
||||||
_InterruptStackSetup();
|
_InterruptStackSetup();
|
||||||
_ExcSetup();
|
_ExcSetup();
|
||||||
|
|
|
@ -29,7 +29,7 @@ extern "C" {
|
||||||
void k_cpu_idle(void);
|
void k_cpu_idle(void);
|
||||||
void k_cpu_atomic_idle(unsigned int key);
|
void k_cpu_atomic_idle(unsigned int key);
|
||||||
|
|
||||||
static ALWAYS_INLINE void nanoArchInit(void)
|
static ALWAYS_INLINE void kernel_arch_init(void)
|
||||||
{
|
{
|
||||||
_kernel.irq_stack = _interrupt_stack + CONFIG_ISR_STACK_SIZE;
|
_kernel.irq_stack = _interrupt_stack + CONFIG_ISR_STACK_SIZE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ extern "C" {
|
||||||
void k_cpu_idle(void);
|
void k_cpu_idle(void);
|
||||||
void k_cpu_atomic_idle(unsigned int key);
|
void k_cpu_atomic_idle(unsigned int key);
|
||||||
|
|
||||||
static ALWAYS_INLINE void nanoArchInit(void)
|
static ALWAYS_INLINE void kernel_arch_init(void)
|
||||||
{
|
{
|
||||||
_kernel.irq_stack = _interrupt_stack + CONFIG_ISR_STACK_SIZE;
|
_kernel.irq_stack = _interrupt_stack + CONFIG_ISR_STACK_SIZE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,11 +26,12 @@ extern void _SpuriousIntHandler(void *);
|
||||||
extern void _SpuriousIntNoErrCodeHandler(void *);
|
extern void _SpuriousIntNoErrCodeHandler(void *);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* These 'dummy' variables are used in nanoArchInit() to force the inclusion of
|
* These 'dummy' variables are used in kernel_arch_init() to force the
|
||||||
* the spurious interrupt handlers. They *must* be declared in a module other
|
* inclusion of the spurious interrupt handlers. They *must* be declared in a
|
||||||
* than the one they are used in to get around garbage collection issues and
|
* module other than the one they are used in to get around garbage collection
|
||||||
* warnings issued some compilers that they aren't used. Therefore care must
|
* issues and warnings issued some compilers that they aren't used. Therefore
|
||||||
* be taken if they are to be moved. See kernel_structs.h for more information.
|
* care must be taken if they are to be moved. See kernel_structs.h for more
|
||||||
|
* information.
|
||||||
*/
|
*/
|
||||||
void *_dummy_spurious_interrupt;
|
void *_dummy_spurious_interrupt;
|
||||||
void *_dummy_exception_vector_stub;
|
void *_dummy_exception_vector_stub;
|
||||||
|
|
|
@ -30,7 +30,7 @@ extern "C" {
|
||||||
*
|
*
|
||||||
* @return N/A
|
* @return N/A
|
||||||
*/
|
*/
|
||||||
static inline void nanoArchInit(void)
|
static inline void kernel_arch_init(void)
|
||||||
{
|
{
|
||||||
extern void *__isr___SpuriousIntHandler;
|
extern void *__isr___SpuriousIntHandler;
|
||||||
extern void *_dummy_spurious_interrupt;
|
extern void *_dummy_spurious_interrupt;
|
||||||
|
|
|
@ -36,7 +36,7 @@ extern void _xt_coproc_init(void);
|
||||||
*
|
*
|
||||||
* @return N/A
|
* @return N/A
|
||||||
*/
|
*/
|
||||||
static ALWAYS_INLINE void nanoArchInit(void)
|
static ALWAYS_INLINE void kernel_arch_init(void)
|
||||||
{
|
{
|
||||||
_kernel.nested = 0;
|
_kernel.nested = 0;
|
||||||
#if XCHAL_CP_NUM > 0
|
#if XCHAL_CP_NUM > 0
|
||||||
|
|
|
@ -281,7 +281,7 @@ static void prepare_multithreading(struct k_thread *dummy_thread)
|
||||||
|
|
||||||
/* perform any architecture-specific initialization */
|
/* perform any architecture-specific initialization */
|
||||||
|
|
||||||
nanoArchInit();
|
kernel_arch_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void switch_to_main_thread(void)
|
static void switch_to_main_thread(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue