kernel: rename nanoArchInit->kernel_arch_init

Change-Id: I094665e583f506cc71185cb6b8630046b2d4b2f8
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-04-18 17:34:46 -04:00 committed by Kumar Gala
commit 8df439b40b
9 changed files with 14 additions and 13 deletions

View file

@ -31,7 +31,7 @@ extern "C" {
#include <v2/irq.h>
#endif
static ALWAYS_INLINE void nanoArchInit(void)
static ALWAYS_INLINE void kernel_arch_init(void)
{
_irq_setup();
}

View file

@ -39,7 +39,7 @@ GTEXT(k_cpu_atomic_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.
*
* @return N/A

View file

@ -29,7 +29,7 @@ extern "C" {
#ifndef _ASMLANGUAGE
extern void _FaultInit(void);
extern void _CpuIdleInit(void);
static ALWAYS_INLINE void nanoArchInit(void)
static ALWAYS_INLINE void kernel_arch_init(void)
{
_InterruptStackSetup();
_ExcSetup();

View file

@ -29,7 +29,7 @@ extern "C" {
void k_cpu_idle(void);
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;
}

View file

@ -25,7 +25,7 @@ extern "C" {
void k_cpu_idle(void);
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;
}

View file

@ -26,11 +26,12 @@ extern void _SpuriousIntHandler(void *);
extern void _SpuriousIntNoErrCodeHandler(void *);
/*
* These 'dummy' variables are used in nanoArchInit() to force the inclusion of
* the spurious interrupt handlers. They *must* be declared in a module other
* than the one they are used in to get around garbage collection issues and
* warnings issued some compilers that they aren't used. Therefore care must
* be taken if they are to be moved. See kernel_structs.h for more information.
* These 'dummy' variables are used in kernel_arch_init() to force the
* inclusion of the spurious interrupt handlers. They *must* be declared in a
* module other than the one they are used in to get around garbage collection
* issues and warnings issued some compilers that they aren't used. Therefore
* care must be taken if they are to be moved. See kernel_structs.h for more
* information.
*/
void *_dummy_spurious_interrupt;
void *_dummy_exception_vector_stub;

View file

@ -30,7 +30,7 @@ extern "C" {
*
* @return N/A
*/
static inline void nanoArchInit(void)
static inline void kernel_arch_init(void)
{
extern void *__isr___SpuriousIntHandler;
extern void *_dummy_spurious_interrupt;

View file

@ -36,7 +36,7 @@ extern void _xt_coproc_init(void);
*
* @return N/A
*/
static ALWAYS_INLINE void nanoArchInit(void)
static ALWAYS_INLINE void kernel_arch_init(void)
{
_kernel.nested = 0;
#if XCHAL_CP_NUM > 0

View file

@ -281,7 +281,7 @@ static void prepare_multithreading(struct k_thread *dummy_thread)
/* perform any architecture-specific initialization */
nanoArchInit();
kernel_arch_init();
}
static void switch_to_main_thread(void)