RTEMS 6.3
Loading...
Searching...
No Matches

Standard system startup. More...

Files

file  bsps/include/bsp/bootcard.h
file  bsps/shared/start/bootcard.c
file  bsps/shared/start/bspgetworkarea-default.c
 This source file contains the default implementation of _Memory_Get().

Functions

void bsp_start (void)
RTEMS_NO_RETURN void bsp_reset (rtems_fatal_source source, rtems_fatal_code code)
RTEMS_NO_RETURN void boot_card (const char *cmdline)
 Standard system initialization procedure.
void bsp_start_on_secondary_processor (struct Per_CPU_Control *cpu_self)
 Standard start routine for secondary processors.

Variables

const char * bsp_boot_cmdline
 Global pointer to the command line of boot_card().

Detailed Description

Standard system startup.

Function Documentation

◆ boot_card()

RTEMS_NO_RETURN void boot_card ( const char * cmdline)

Standard system initialization procedure.

You may pass a command line in cmdline. It is later available via the global bsp_boot_cmdline variable.

This is the C entry point for ALL RTEMS BSPs. It is invoked from the assembly language initialization file usually called start.S which does the basic CPU setup (stack, C runtime environment, zero BSS, load other sections) and calls afterwards boot_card(). The boot card function provides the framework for the BSP initialization sequence. For the basic flow of initialization see RTEMS C User's Guide, Initialization Manager.

This style of initialization ensures that the C++ global constructors are executed after RTEMS is initialized.

◆ bsp_start_on_secondary_processor()

void bsp_start_on_secondary_processor ( struct Per_CPU_Control * cpu_self)

Standard start routine for secondary processors.

This function is usually called by low-level startup code of secondary processors or boot loaders starting a secondary processor. The final step of this function is a call to _SMP_Start_multitasking_on_secondary_processor().