Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
Miscellaneous architecture APIs

Functions

int arch_printk_char_out (int c)
 
static void arch_kernel_init (void)
 
static void arch_nop (void)
 

Detailed Description

Function Documentation

◆ arch_kernel_init()

static void arch_kernel_init ( void  )
inlinestatic

#include <kernel/include/kernel_arch_interface.h>

Architecture-specific kernel initialization hook

This function is invoked near the top of _Cstart, for additional architecture-specific setup before the rest of the kernel is brought up.

TODO: Deprecate, most arches are using a prep_c() function to do the same thing in a simpler way

◆ arch_nop()

static void arch_nop ( void  )
inlinestatic

#include <kernel/include/kernel_arch_interface.h>

Do nothing and return. Yawn.

◆ arch_printk_char_out()

int arch_printk_char_out ( int  c)

#include <kernel/include/kernel_arch_interface.h>

Early boot console output hook

Definition of this function is optional. If implemented, any invocation of printk() (or logging calls with CONFIG_LOG_MINIMAL which are backed by printk) will default to sending characters to this function. It is useful for early boot debugging before main serial or console drivers come up.

This can be overridden at runtime with __printk_hook_install().

The default __weak implementation of this does nothing.

Parameters
cCharacter to print
Returns
The character printed