kernel: rename kernel_arch_init()
This is part of the core kernel -> architecture interface and has been renamed z_arch_kernel_init(). Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
4ad9f687df
commit
f6fb634b89
14 changed files with 14 additions and 14 deletions
|
@ -44,7 +44,7 @@ static ALWAYS_INLINE _cpu_t *z_arch_curr_cpu(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static ALWAYS_INLINE void kernel_arch_init(void)
|
static ALWAYS_INLINE void z_arch_kernel_init(void)
|
||||||
{
|
{
|
||||||
z_irq_setup();
|
z_irq_setup();
|
||||||
_current_cpu->irq_stack =
|
_current_cpu->irq_stack =
|
||||||
|
|
|
@ -37,7 +37,7 @@ GTEXT(z_arch_cpu_atomic_idle)
|
||||||
*
|
*
|
||||||
* @brief Initialization of CPU idle
|
* @brief Initialization of CPU idle
|
||||||
*
|
*
|
||||||
* Only called by kernel_arch_init(). Sets SEVONPEND bit once for the system's
|
* Only called by z_arch_kernel_init(). Sets SEVONPEND bit once for the system's
|
||||||
* duration.
|
* duration.
|
||||||
*
|
*
|
||||||
* @return N/A
|
* @return N/A
|
||||||
|
|
|
@ -34,7 +34,7 @@ extern void z_arch_configure_static_mpu_regions(void);
|
||||||
extern void z_arch_configure_dynamic_mpu_regions(struct k_thread *thread);
|
extern void z_arch_configure_dynamic_mpu_regions(struct k_thread *thread);
|
||||||
#endif /* CONFIG_ARM_MPU */
|
#endif /* CONFIG_ARM_MPU */
|
||||||
|
|
||||||
static ALWAYS_INLINE void kernel_arch_init(void)
|
static ALWAYS_INLINE void z_arch_kernel_init(void)
|
||||||
{
|
{
|
||||||
z_InterruptStackSetup();
|
z_InterruptStackSetup();
|
||||||
z_ExcSetup();
|
z_ExcSetup();
|
||||||
|
|
|
@ -26,7 +26,7 @@ extern "C" {
|
||||||
|
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
|
|
||||||
static ALWAYS_INLINE void kernel_arch_init(void)
|
static ALWAYS_INLINE void z_arch_kernel_init(void)
|
||||||
{
|
{
|
||||||
_kernel.irq_stack =
|
_kernel.irq_stack =
|
||||||
Z_THREAD_STACK_BUFFER(_interrupt_stack) + CONFIG_ISR_STACK_SIZE;
|
Z_THREAD_STACK_BUFFER(_interrupt_stack) + CONFIG_ISR_STACK_SIZE;
|
||||||
|
|
|
@ -36,7 +36,7 @@ void z_arch_switch_to_main_thread(struct k_thread *main_thread,
|
||||||
*
|
*
|
||||||
* @return N/A
|
* @return N/A
|
||||||
*/
|
*/
|
||||||
static inline void kernel_arch_init(void)
|
static inline void z_arch_kernel_init(void)
|
||||||
{
|
{
|
||||||
/* Nothing to be done */
|
/* Nothing to be done */
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
static ALWAYS_INLINE void kernel_arch_init(void)
|
static ALWAYS_INLINE void z_arch_kernel_init(void)
|
||||||
{
|
{
|
||||||
_kernel.irq_stack =
|
_kernel.irq_stack =
|
||||||
Z_THREAD_STACK_BUFFER(_interrupt_stack) + CONFIG_ISR_STACK_SIZE;
|
Z_THREAD_STACK_BUFFER(_interrupt_stack) + CONFIG_ISR_STACK_SIZE;
|
||||||
|
|
|
@ -151,7 +151,7 @@ config X86_VERY_EARLY_CONSOLE
|
||||||
Non-emulated X86 devices often require special hardware to attach
|
Non-emulated X86 devices often require special hardware to attach
|
||||||
a debugger, which may not be easily available. This option adds a
|
a debugger, which may not be easily available. This option adds a
|
||||||
very minimal serial driver which gets initialized at the very
|
very minimal serial driver which gets initialized at the very
|
||||||
beginning of z_cstart(), via kernel_arch_init(). This driver enables
|
beginning of z_cstart(), via z_arch_kernel_init(). This driver enables
|
||||||
printk to emit messages to the 16550 UART port 0 instance in device
|
printk to emit messages to the 16550 UART port 0 instance in device
|
||||||
tree. This mini-driver assumes I/O to the UART is done via ports.
|
tree. This mini-driver assumes I/O to the UART is done via ports.
|
||||||
|
|
||||||
|
|
|
@ -506,7 +506,7 @@ static void add_mmu_region(struct x86_mmu_pdpt *pdpt, struct mmu_region *rgn,
|
||||||
extern struct mmu_region z_x86_mmulist_start[];
|
extern struct mmu_region z_x86_mmulist_start[];
|
||||||
extern struct mmu_region z_x86_mmulist_end[];
|
extern struct mmu_region z_x86_mmulist_end[];
|
||||||
|
|
||||||
/* Called from x86's kernel_arch_init() */
|
/* Called from x86's z_arch_kernel_init() */
|
||||||
void z_x86_paging_init(void)
|
void z_x86_paging_init(void)
|
||||||
{
|
{
|
||||||
size_t pages_free;
|
size_t pages_free;
|
||||||
|
|
|
@ -41,7 +41,7 @@ void z_x86_paging_init(void);
|
||||||
*
|
*
|
||||||
* @return N/A
|
* @return N/A
|
||||||
*/
|
*/
|
||||||
static inline void kernel_arch_init(void)
|
static inline void z_arch_kernel_init(void)
|
||||||
{
|
{
|
||||||
/* No-op on this arch */
|
/* No-op on this arch */
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
extern void z_arch_switch(void *switch_to, void **switched_from);
|
extern void z_arch_switch(void *switch_to, void **switched_from);
|
||||||
|
|
||||||
static inline void kernel_arch_init(void)
|
static inline void z_arch_kernel_init(void)
|
||||||
{
|
{
|
||||||
/* nothing */;
|
/* nothing */;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include <irq.h>
|
#include <irq.h>
|
||||||
#include <xuk-switch.h>
|
#include <xuk-switch.h>
|
||||||
|
|
||||||
static inline void kernel_arch_init(void)
|
static inline void z_arch_kernel_init(void)
|
||||||
{
|
{
|
||||||
/* This is a noop, we already took care of things before
|
/* This is a noop, we already took care of things before
|
||||||
* z_cstart() is entered
|
* z_cstart() is entered
|
||||||
|
|
|
@ -61,7 +61,7 @@ static ALWAYS_INLINE _cpu_t *z_arch_curr_cpu(void)
|
||||||
*
|
*
|
||||||
* @return N/A
|
* @return N/A
|
||||||
*/
|
*/
|
||||||
static ALWAYS_INLINE void kernel_arch_init(void)
|
static ALWAYS_INLINE void z_arch_kernel_init(void)
|
||||||
{
|
{
|
||||||
_cpu_t *cpu0 = &_kernel.cpus[0];
|
_cpu_t *cpu0 = &_kernel.cpus[0];
|
||||||
|
|
||||||
|
|
|
@ -493,7 +493,7 @@ FUNC_NORETURN void z_cstart(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* perform any architecture-specific initialization */
|
/* perform any architecture-specific initialization */
|
||||||
kernel_arch_init();
|
z_arch_kernel_init();
|
||||||
|
|
||||||
#ifdef CONFIG_MULTITHREADING
|
#ifdef CONFIG_MULTITHREADING
|
||||||
struct k_thread dummy_thread = {
|
struct k_thread dummy_thread = {
|
||||||
|
|
|
@ -64,7 +64,7 @@ void __attribute__((section(".iram1"))) __start(void)
|
||||||
|
|
||||||
/* Initialize the architecture CPU pointer. Some of the
|
/* Initialize the architecture CPU pointer. Some of the
|
||||||
* initialization code wants a valid _current before
|
* initialization code wants a valid _current before
|
||||||
* kernel_arch_init() is invoked.
|
* z_arch_kernel_init() is invoked.
|
||||||
*/
|
*/
|
||||||
__asm__ volatile("wsr.MISC0 %0; rsync" : : "r"(&_kernel.cpus[0]));
|
__asm__ volatile("wsr.MISC0 %0; rsync" : : "r"(&_kernel.cpus[0]));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue